Skip to content

Commit 69be428

Browse files
committed
fix inactive flag for devtools
1 parent 3ca21e5 commit 69be428

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/directives/internal/component.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ export default {
267267
if (!child || this.keepAlive) {
268268
if (child) {
269269
// remove ref
270+
child._inactive = true
270271
child._updateRef(true)
271272
}
272273
return
@@ -319,10 +320,8 @@ export default {
319320
var self = this
320321
var current = this.childVM
321322
// for devtool inspection
322-
if (process.env.NODE_ENV !== 'production') {
323-
if (current) current._inactive = true
324-
target._inactive = false
325-
}
323+
if (current) current._inactive = true
324+
target._inactive = false
326325
this.childVM = target
327326
switch (self.params.transitionMode) {
328327
case 'in-out':

0 commit comments

Comments
 (0)