Skip to content

Commit 467fc84

Browse files
authored
docs: mention |self modifier in reference section (#4709)
1 parent f11b205 commit 467fc84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

site/content/docs/02-template-syntax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ The following modifiers are available:
462462
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
463463
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase
464464
* `once` — remove the handler after the first time it runs
465+
* `self` — only trigger handler if event.target is the element itself
465466

466467
Modifiers can be chained together, e.g. `on:click|once|capture={...}`.
467468

0 commit comments

Comments
 (0)