-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closure actions cannot be used as event handlers in Safari #11604
Comments
@xtian this behavior is emergent, and not really an intended API. We would like to introduce something we've called "kabob" event listeners in the near term. They would look like:
This needs an RFC and implementation though. For your immediate case, I suggest using a combination of the element space action helper and the closure action. For example:
Or alternatively (the behavior is slightly different, but similar) just keep using element actions:
|
Ok, good to know! |
I believe tildeio/htmlbars#374 fixes this issue. |
1.13.3 should fix this since tildeio/htmlbars#374 has been merged |
In Chrome, the new 1.13 closure actions can be used as event handlers directly on an element, but they throw an exception in Safari:
Not sure if this officially supported functionality, though. Here are some JSBins:
1.13:
http://emberjs.jsbin.com/hamixovace/1/edit?html,js,console,output
Canary:
http://emberjs.jsbin.com/hamixovace/2/edit?html,js,console,output
The text was updated successfully, but these errors were encountered: