Skip to content

Commit 17c2d22

Browse files
Update trigger.md (#1608)
Add a note about custom DOM events per [issue 145](#145)
1 parent 2d6b497 commit 17c2d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: docs/api/wrapper/trigger.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Triggers an event asynchronously on the `Wrapper` DOM node.
44

55
`trigger` takes an optional `options` object. The properties in the `options` object are added to the Event.
66
`trigger` returns a Promise, which when resolved, guarantees the component is updated.
7+
`trigger` only works with native DOM events. To emit a custom event, use `wrapper.vm.$emit('myCustomEvent')`
78

89
- **Arguments:**
910

0 commit comments

Comments
 (0)