Skip to content

Commit 3c563d1

Browse files
yanamuraeddyerburgh
authored andcommitted
fix: dom-events.md eslint errors (#131)
1 parent ad9d32a commit 3c563d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/guides/dom-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ You can run preventDefault on the event by passing `preventDefault: true` in `op
2727
```js
2828
const wrapper = mount(MyButton)
2929

30-
wrapper.trigger('click', {preventDefault: true})
30+
wrapper.trigger('click', { preventDefault: true })
3131
```
3232

3333

3434
## Mouse Click Example
3535

3636
**Component under test**
3737

38-
```js
38+
```html
3939
<template>
4040
<div>
4141
<button class="yes" @click="callYes">Yes</button>
@@ -91,7 +91,7 @@ describe('Click event', () => {
9191

9292
This component allows to increment/decrement the quantity using various keys.
9393

94-
```js
94+
```html
9595
<template>
9696
<input type="text" @keydown.prevent="onKeydown" v-model="quantity" />
9797
</template>

0 commit comments

Comments
 (0)