Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when not available on mount #34

Open
lmeysel opened this issue Apr 17, 2018 · 1 comment
Open

Exception when not available on mount #34

lmeysel opened this issue Apr 17, 2018 · 1 comment

Comments

@lmeysel
Copy link

lmeysel commented Apr 17, 2018

(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 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.

@rowild
Copy link

rowild commented Aug 21, 2018

Is there any news on this topic here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants