We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019c155 commit 8757e07Copy full SHA for 8757e07
packages/test-utils/src/wrapper.js
@@ -633,11 +633,11 @@ export default class Wrapper implements BaseWrapper {
633
eventObject.keyCode = modifiers[event[1]]
634
}
635
636
- // If this element's method has been reset by setMethod, it won't trigger
637
- // Make sure that this element is updated with the latest method
+ // If this element's event handler has been reset by setMethod, it won't trigger
+ // Make sure that this element is updated with the latest event handler
638
if (this.vnode) {
639
const context = this.vnode.context
640
- context._update(context._render())
+ if (context.$options.render) context._update(context._render())
641
642
643
this.element.dispatchEvent(eventObject)
0 commit comments