We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2191ee1 commit 0bcc34eCopy full SHA for 0bcc34e
src/components/view.js
@@ -26,11 +26,14 @@ export default {
26
let depth = 0
27
let inactive = false
28
while (parent && parent._routerRoot !== parent) {
29
- if (parent.$vnode && parent.$vnode.data.routerView) {
30
- depth++
31
- }
32
- if (parent._inactive) {
33
- inactive = true
+ const vnodeData = parent.$vnode && parent.$vnode.data
+ if (vnodeData) {
+ if (vnodeData.routerView) {
+ depth++
+ }
34
+ if (vnodeData.keepAlive && parent._inactive) {
35
+ inactive = true
36
37
}
38
parent = parent.$parent
39
0 commit comments