Skip to content

Commit 7af1961

Browse files
authored
style: update event-handling.md avoid horizontal scrolling (vuejs#2678)
comment lines are being splitted to avoid horizontal scrolling as in a comment right after
1 parent a4c52b9 commit 7af1961

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/guide/essentials/event-handling.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ Order matters when using modifiers because the relevant code is generated in the
257257
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):
258258

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

0 commit comments

Comments
 (0)