Skip to content

v0.7.0

Compare
Choose a tag to compare
@buschtoens buschtoens released this 06 Mar 08:21
· 263 commits to master since this release

Description

This release adds a prevent-default template helper, that you can use like this:

<a href="/" {{on "click" (prevent-default this.someAction)}}>Click me</a>
<a href="/" {{on "click" this.someAction}} {{on "click" (prevent-default)}}>Click me</a>

This is effectively the same as calling event.preventDefault() in your event handler or using the {{action}} modifier like this:

<a href="/" {{action this.someAction preventDefault=true}}>Click me</a>

Features

  • #5: feat(prevent-default): add prevent-default template helper (#8) d7e3fd1

Changes

v0.6.0...v0.7.0