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
{{ message }}
This repository was archived by the owner on Mar 21, 2023. It is now read-only.
Hello, I have an app that reloads a Vue component when scrolling to the top or bottom of the page. I am getting the following console error:
vue-scroll.esm.js:30 Uncaught TypeError: Cannot read property 'scrollTop' of null
at HTMLDivElement.fn (vue-scroll.esm.js:30)
at invokeFunc (debounce.js:95)
at trailingEdge (debounce.js:144)
at timerExpired (debounce.js:132)
It is not 100% reproducible, but seems to happen when scrolling quickly or quickly back and forth. Looking into the code it seems like the event target is undefined in this case. Would it be appropriate to have a null check on target in the addEventListener() sub method fn() ?
The text was updated successfully, but these errors were encountered:
Hello, I have an app that reloads a Vue component when scrolling to the top or bottom of the page. I am getting the following console error:
It is not 100% reproducible, but seems to happen when scrolling quickly or quickly back and forth. Looking into the code it seems like the event target is undefined in this case. Would it be appropriate to have a null check on
target
in theaddEventListener()
sub methodfn()
?The text was updated successfully, but these errors were encountered: