Skip to content

Commit 02ada02

Browse files
posvachrisvfritz
authored andcommitted
Add tip about order in event modifiers (vuejs#953)
1 parent d681b9d commit 02ada02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/v2/guide/events.md

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ To address this problem, Vue provides **event modifiers** for `v-on`. Recall tha
194194
<div v-on:click.self="doThat">...</div>
195195
```
196196

197+
<p class="tip">Order matters when using modifiers because the relevant code is generated in the same order. Therefore using `@click.prevent.self` will prevent **all clicks** while `@click.self.prevent` will only prevent clicks on the element itself.</p>
198+
197199
> New in 2.1.4
198200
199201
``` html

0 commit comments

Comments
 (0)