We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74d2a76 commit 4a3237aCopy full SHA for 4a3237a
packages/runtime-dom/src/directives/vModel.ts
@@ -30,16 +30,10 @@ function onCompositionEnd(e: Event) {
30
const target = e.target as any
31
if (target.composing) {
32
target.composing = false
33
- trigger(target, 'input')
+ target.dispatchEvent(new Event('input'))
34
}
35
36
37
-function trigger(el: HTMLElement, type: string) {
38
- const e = document.createEvent('HTMLEvents')
39
- e.initEvent(type, true, true)
40
- el.dispatchEvent(e)
41
-}
42
-
43
type ModelDirective<T> = ObjectDirective<T & { _assign: AssignerFn }>
44
45
// We are exporting the v-model runtime directly as vnode hooks so that it can
0 commit comments