Skip to content

Commit

Permalink
Update events.md (vuejs#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
01abhishekjain authored and sdras committed Feb 16, 2018
1 parent cdfa605 commit d4d09fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/guide/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ To address this problem, Vue provides **event modifiers** for `v-on`. Recall tha
<form v-on:submit.prevent></form>

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

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

0 comments on commit d4d09fd

Please sign in to comment.