From c474007c882fbe3a046170189dd462eb97174173 Mon Sep 17 00:00:00 2001 From: Luca Bonavita Date: Sat, 13 Apr 2019 18:03:51 +0100 Subject: [PATCH] Add link to Mozilla docs about events bubbling and capture phase Fixes #2393 --- 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 8927344656..05a2d8c5fb 100644 --- a/site/content/tutorial/05-events/03-event-modifiers/text.md +++ b/site/content/tutorial/05-events/03-event-modifiers/text.md @@ -21,7 +21,7 @@ The full list of modifiers: * `preventDefault` — calls `event.preventDefault()` before running the handler. Useful for e.g. client-side form handling * `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 +* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase ([MDN docs](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture)) * `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