From 66e1240d6d1a7c70dbcae222f757e3edd2c9c706 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 2 Mar 2019 09:11:14 -0500 Subject: [PATCH] explain once modifier --- site/content/tutorial/05-events/03-event-modifiers/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/05-events/03-event-modifiers/text.md b/site/content/tutorial/05-events/03-event-modifiers/text.md index c9ac851408..8927344656 100644 --- a/site/content/tutorial/05-events/03-event-modifiers/text.md +++ b/site/content/tutorial/05-events/03-event-modifiers/text.md @@ -22,6 +22,6 @@ The full list of modifiers: * `stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element * `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` +* `once` — remove the handler after the first time it runs You can chain modifiers together, e.g. `on:click|once|capture={...}`. \ No newline at end of file