We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f11b205 commit 467fc84Copy full SHA for 467fc84
site/content/docs/02-template-syntax.md
@@ -462,6 +462,7 @@ The following modifiers are available:
462
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
463
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase
464
* `once` — remove the handler after the first time it runs
465
+* `self` — only trigger handler if event.target is the element itself
466
467
Modifiers can be chained together, e.g. `on:click|once|capture={...}`.
468
0 commit comments