Skip to content

Commit 41ee46a

Browse files
committed
do not destroy kept-alive component with activate hook on invalidation (fix #2566)
1 parent c3aff0d commit 41ee46a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/directives/internal/component.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ export default {
265265

266266
unbuild (defer) {
267267
if (this.waitingFor) {
268-
this.waitingFor.$destroy()
268+
if (!this.keepAlive) {
269+
this.waitingFor.$destroy()
270+
}
269271
this.waitingFor = null
270272
}
271273
var child = this.childVM

0 commit comments

Comments
 (0)