From 172f294cb67b98b863c5116669997f336a24b97a Mon Sep 17 00:00:00 2001 From: Samuel Plumppu <6125097+Greenheart@users.noreply.github.com> Date: Wed, 4 Aug 2021 00:19:56 +0200 Subject: [PATCH] docs: Fix property name typo for event.isTrusted (#6596) --- site/content/docs/02-template-syntax.md | 2 +- site/content/tutorial/05-events/03-event-modifiers/text.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index bbf3071583..347a756274 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -516,7 +516,7 @@ The following modifiers are available: * `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 -* `trusted` — only trigger handler if `event.trusted` is `true`. I.e. if the event is triggered by a user action. +* `trusted` — only trigger handler if `event.isTrusted` is `true`. I.e. if the event is triggered by a user action. Modifiers can be chained together, e.g. `on:click|once|capture={...}`. 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 f6a4b5784d..e9963b78e2 100644 --- a/site/content/tutorial/05-events/03-event-modifiers/text.md +++ b/site/content/tutorial/05-events/03-event-modifiers/text.md @@ -25,6 +25,6 @@ The full list of modifiers: * `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 * `self` — only trigger handler if event.target is the element itself -* `trusted` — only trigger handler if `event.trusted` is `true`. I.e. if the event is triggered by a user action. +* `trusted` — only trigger handler if `event.isTrusted` is `true`. I.e. if the event is triggered by a user action. You can chain modifiers together, e.g. `on:click|once|capture={...}`.