You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
Add documentation on how to support multiple actions on a single element #2900
I've spent more time than I'm willing to admit in figuring this out, and now it seems so simple: <a {{action 'foo' on="click"}} {{action 'bar' on="mouseEnter"}} {{action 'baz' on="mouseLeave"}}>...</a>
I think at that point you'd be better off using actions as event handlers, <a onclick={{action 'foo'}} > and such. Can you submit a PR and we'll discuss there?
@locks; can those event handlers be used to handle all types of events? Mouse up, down, etc
If that's the case, why isn't that the suggested way of handling events in the guides?
Activity
locks commentedon Aug 7, 2017
I think at that point you'd be better off using actions as event handlers,
<a onclick={{action 'foo'}} >and such. Can you submit a PR and we'll discuss there?acorncom commentedon Sep 14, 2017
@myartsev any thoughts here? Would love to get this added into the guides if you have time for that PR ...
myartsev commentedon Sep 15, 2017
My bad, this dropped off my radar.
@locks; can those event handlers be used to handle all types of events? Mouse up, down, etc
If that's the case, why isn't that the suggested way of handling events in the guides?