MCPcopy
hub / github.com/vuejs/core / triggerEvent

Function triggerEvent

packages/runtime-dom/__tests__/directives/vModel.spec.ts:13–16  ·  view source on GitHub ↗
(type: string, el: Element)

Source from the content-addressed store, hash-verified

11} from '@vue/runtime-dom'
12
13const triggerEvent = (type: string, el: Element) => {
14 const event = new Event(type)
15 el.dispatchEvent(event)
16}
17
18const withVModel = (node: VNode, arg: any, mods?: any) =>
19 withDirectives(node, [[vModelDynamic, arg, '', mods]])

Callers 1

vModel.spec.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected