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
Yeah, we don't want to use the | syntax for the above reason. But also, I don't think we should be encouraging code like this, for the mentioned accessibility reasons. If you really find yourself attaching the same handler to both the click and keypress events on a lot of elements, you can write an Action that wraps this behavior and attaches and removes both event handlers from the node.
Describe the problem
I'm frustrated having to repeat code when it could be simplified
Describe the proposed solution
on:click|keypress={handleAction}
Opposed to
Alternatives considered
I am not aware of alternatives.
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: