Skip to content

Commit

Permalink
docs: mention |self modifier in reference section (sveltejs#4709)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushkine authored and taylorzane committed Dec 17, 2020
1 parent 422bbe5 commit 97b0727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/content/docs/02-template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ The following modifiers are available:
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase
* `once` — remove the handler after the first time it runs
* `self` — only trigger handler if event.target is the element itself

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

Expand Down

0 comments on commit 97b0727

Please sign in to comment.