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 I try to disable sticky when resizing to mobile v-sticky="!isMobile" - an error appears:
vue.esm.js?a026:628 [Vue warn]: Error in directive sticky componentUpdated hook: "TypeError: Cannot destructure property 'parentNode' of 'this.placeholderEl' as it is undefined."
The text was updated successfully, but these errors were encountered:
it was my mistake, I defined the variable on the mounted hook instead of created, but, I think, the directive needs to be secured with additional checks so that such an error does not occur in any case
Funny store I have same error but I dont have anything hooked with hooks.
I just tried to use in on nuxt and when I come from page without sticky element to page with it this error appear ;)
Code is just missing some checks like if element exists and (typeof el.getBoundingClientRect === "function")
It was in my case by double iF
I had
when I try to disable sticky when resizing to mobile
v-sticky="!isMobile"
- an error appears:vue.esm.js?a026:628 [Vue warn]: Error in directive sticky componentUpdated hook: "TypeError: Cannot destructure property 'parentNode' of 'this.placeholderEl' as it is undefined."
The text was updated successfully, but these errors were encountered: