Skip to content

Commit 696a468

Browse files
wangyi7099chrisvfritz
authored andcommitted
Update events.md (#1333)
When using capture mode , parent is being handled before the children is being handled
1 parent aab7ec2 commit 696a468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ To address this problem, Vue provides **event modifiers** for `v-on`. Recall tha
186186
<form v-on:submit.prevent></form>
187187

188188
<!-- use capture mode when adding the event listener -->
189-
<!-- i.e. an event targeting an inner element is handled here before being handled by that element -->
189+
<!-- i.e. an event targeting an inner element is handled here after being handled by that element -->
190190
<div v-on:click.capture="doThis">...</div>
191191

192192
<!-- only trigger handler if event.target is the element itself -->

0 commit comments

Comments
 (0)