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
Hey, would it be possible to reduce the typing for every listener with adding two lines of code? Im a Vue dev originally and I love how they did their piping system: https://vuejs.org/guide/essentials/event-handling.html#event-modifiers, especially shorthand naming for preventDefault -> .prevent & stopPropagation -> stop. It may be some bikeshedding, but why not? =)
Describe the proposed solution
I think it just could be done by adding OR statement here:
Describe the problem
Hey, would it be possible to reduce the typing for every listener with adding two lines of code? Im a Vue dev originally and I love how they did their piping system: https://vuejs.org/guide/essentials/event-handling.html#event-modifiers, especially shorthand naming for preventDefault -> .prevent & stopPropagation -> stop. It may be some bikeshedding, but why not? =)
Describe the proposed solution
I think it just could be done by adding OR statement here:
svelte/packages/svelte/src/compiler/compile/render_dom/wrappers/Element/EventHandler.js
Line 48 in 6f508a0
Alternatives considered
Its just what it is
Importance
nice to have
The text was updated successfully, but these errors were encountered: