Commit a90d1a20e295dc8bc594f83ca5c1ce2e96b0602b
Committed by
GitHub
1 parent
f62348cf
解决isInsideHiddenElement函数下parentNode.style对象的display报错的bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/tabs/tabs.vue
... | ... | @@ -314,7 +314,7 @@ |
314 | 314 | isInsideHiddenElement () { |
315 | 315 | let parentNode = this.$el.parentNode; |
316 | 316 | while(parentNode && parentNode !== document.body) { |
317 | - if (parentNode.style.display === 'none') { | |
317 | + if (parentNode.style && parentNode.style.display === 'none') { | |
318 | 318 | return parentNode; |
319 | 319 | } |
320 | 320 | parentNode = parentNode.parentNode; | ... | ... |