Skip to content

Commit 5dacfc5

Browse files
committed
fix: make sure that the element can re-render
1 parent 019c155 commit 5dacfc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/test-utils/src/wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ export default class Wrapper implements BaseWrapper {
635635

636636
// If this element's method has been reset by setMethod, it won't trigger
637637
// Make sure that this element is updated with the latest method
638-
if (this.vnode) {
638+
if (this.vnode && this.vm && this.vm.$options.render) {
639639
const context = this.vnode.context
640640
context._update(context._render())
641641
}

0 commit comments

Comments
 (0)