From 1d21cece719ce2c00891ce12c81f09cfc931bc4f Mon Sep 17 00:00:00 2001 From: pushkin Date: Thu, 23 Apr 2020 10:12:42 +0200 Subject: [PATCH] missing modifier `self` documentation #3377 --- site/content/docs/02-template-syntax.md | 1 + 1 file changed, 1 insertion(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 04764d0601..2f99c0db82 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -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={...}`.