File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,11 @@ export default class Wrapper implements BaseWrapper {
501
501
// $FlowIgnore : Problem with possibly null this.vm
502
502
this . vm . $options . methods [ key ] = methods [ key ]
503
503
} )
504
+
505
+ if ( this . vnode ) {
506
+ const context = this . vnode . context
507
+ if ( context . $options . render ) context . _update ( context . _render ( ) )
508
+ }
504
509
}
505
510
506
511
/**
@@ -743,13 +748,6 @@ export default class Wrapper implements BaseWrapper {
743
748
eventObject . keyCode = modifiers [ event [ 1 ] ]
744
749
}
745
750
746
- // If this element's event handler has been reset by setMethod, it won't trigger
747
- // Make sure that this element is updated with the latest event handler
748
- if ( this . vnode ) {
749
- const context = this . vnode . context
750
- if ( context . $options . render ) context . _update ( context . _render ( ) )
751
- }
752
-
753
751
this . element . dispatchEvent ( eventObject )
754
752
if ( this . vnode ) {
755
753
orderWatchers ( this . vm || this . vnode . context . $root )
You can’t perform that action at this time.
0 commit comments