Skip to content

Commit 74f5144

Browse files
authored
Update README.md
Updated links for `capture` and `bubbling` to the MDN website.
1 parent c1e1157 commit 74f5144

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/01-svelte/05-events/03-event-modifiers

1 file changed

+1
-1
lines changed

content/tutorial/01-svelte/05-events/03-event-modifiers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The full list of modifiers:
1717
- `stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element
1818
- `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
1919
- `nonpassive` — explicitly set `passive: false`
20-
- `capture` — fires the handler during the [_capture_](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_capture) phase instead of the [_bubbling_](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_bubbling) phase
20+
- `capture` — fires the handler during the [_capture_](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Event_bubbling#event_capture) phase instead of the [_bubbling_](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Event_bubbling#introducing_event_bubbling) phase
2121
- `once` — remove the handler after the first time it runs
2222
- `self` — only trigger handler if event.target is the element itself
2323
- `trusted` — only trigger handler if `event.isTrusted` is `true`, meaning the event was triggered by a user action rather than because some JavaScript called `element.dispatchEvent(...)`

0 commit comments

Comments
 (0)