You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the component on an hidden parent which first shows up under certain conditions (i.e. within a <div v-show="shown">...</div>), i get an exception Error in mounted hook: "TypeError: Cannot read property 'clientHeight' of undefined" in vue-scrollbar.vue line 267.
This is probably due to the non-rendered children which are just assumed that they exist. It's possible to work around it using the v-if-directive but I often came across cases where that is not feasable.
Unfortunately this kind of problem is very common when using vue and doing measurements of child-components.
The text was updated successfully, but these errors were encountered:
(Using Vue 2.5.16, Chrome 65)
When using the component on an hidden parent which first shows up under certain conditions (i.e. within a
<div v-show="shown">...</div>
), i get an exceptionError in mounted hook: "TypeError: Cannot read property 'clientHeight' of undefined"
in vue-scrollbar.vue line 267.This is probably due to the non-rendered children which are just assumed that they exist. It's possible to work around it using the v-if-directive but I often came across cases where that is not feasable.
Unfortunately this kind of problem is very common when using vue and doing measurements of child-components.
The text was updated successfully, but these errors were encountered: