Skip to content

Commit

Permalink
feat: vuejs#149 add test for v-model.lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
thewei committed Nov 9, 2023
1 parent 8937e27 commit b421da8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/directives/on.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ export const on: Directive = ({ el, get, exp, arg, modifiers }) => {
}

listen(el, arg, handler, modifiers)

return () => {
el.removeEventListener(arg!, handler, modifiers)
}
}
4 changes: 4 additions & 0 deletions tests/model.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ <h2>Text Input</h2>
{{ text }}
<input v-model.trim="text" />

<h2>Text Input w/ lazy</h2>
{{ text }}
<input v-model.lazy="text" />

<h2>TextArea</h2>
{{ text }}
<textarea v-model.trim="text"></textarea>
Expand Down

0 comments on commit b421da8

Please sign in to comment.