Skip to content

Commit

Permalink
Update event-handling.md avoid horizontal scrolling
Browse files Browse the repository at this point in the history
comment lines are being splitted to avoid horizontal scrolling as in a comment right after
  • Loading branch information
leoelz committed Jan 22, 2024
1 parent a4c52b9 commit bc8e8d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/guide/essentials/event-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ Order matters when using modifiers because the relevant code is generated in the
The `.capture`, `.once`, and `.passive` modifiers mirror the [options of the native `addEventListener` method](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#options):

```vue-html
<!-- use capture mode when adding the event listener -->
<!-- i.e. an event targeting an inner element is handled here before being handled by that element -->
<!-- use capture mode when adding the event listener -->
<!-- i.e. an event targeting an inner element is handled -->
<!-- here before being handled by that element -->
<div @click.capture="doThis">...</div>
<!-- the click event will be triggered at most once -->
Expand Down

0 comments on commit bc8e8d2

Please sign in to comment.