Skip to content

Commit 5ad147b

Browse files
committed
fix #536 v-ref lost after transition
1 parent 4df54f6 commit 5ad147b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directives/ref.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ module.exports = {
1616
},
1717

1818
unbind: function () {
19-
delete this.owner.$[this.expression]
19+
if (this.owner.$[this.expression] === this.vm) {
20+
delete this.owner.$[this.expression]
21+
}
2022
}
2123

2224
}

0 commit comments

Comments
 (0)