8000 clear ref when unbinding static component (fix #985) · TonyXY/vue@bd9015b · GitHub
[go: up one dir, main page]

Skip to content

Commit bd9015b

Browse files
committed
clear ref when unbinding static component (fix vuejs#985)
1 parent 47c52d6 commit bd9015b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/directives/component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ module.exports = {
286286
unbind: function () {
287287
this.invalidatePending()
288288
this.unbuild()
289+
this.unsetCurrent()
289290
// destroy all keep-alive cached instances
290291
if (this.cache) {
291292
for (var key in this.cache) {

0 commit comments

Comments
 (0)
0