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
Copy file name to clipboardexpand all lines: site/content/tutorial/05-events/03-event-modifiers/text.md
+1
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ The full list of modifiers:
21
21
*`preventDefault` — calls `event.preventDefault()` before running the handler. Useful for client-side form handling, for example.
22
22
*`stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element
23
23
*`passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
24
+
*`nonpassive` — explicitly set `passive: false`
24
25
*`capture` — fires the handler during the *capture* phase instead of the *bubbling* phase ([MDN docs](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture))
25
26
*`once` — remove the handler after the first time it runs
26
27
*`self` — only trigger handler if event.target is the element itself
0 commit comments