Skip to content

Commit 9bcc627

Browse files
zrw354kazupon
authored andcommitted
Improve document usability (#816)
Replace long lines in sample code with short lines to avoid horizontal scrollbars
1 parent 119e4d3 commit 9bcc627

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/v2/guide/events.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ new Vue({
144144
Sometimes we also need to access the original DOM event in an inline statement handler. You can pass it into a method using the special `$event` variable:
145145

146146
``` html
147-
<button v-on:click="warn('Form cannot be submitted yet.', $event)">Submit</button>
147+
<button v-on:click="warn('Form cannot be submitted yet.', $event)">
148+
Submit
149+
</button>
148150
```
149151

150152
``` js

0 commit comments

Comments
 (0)