ScrollPanel: TypeError: Cannot read properties of null (reading 'scrollWidth') #4689
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
I have Scrollpanels in a dialog.
When I close the dialog and happen to touch the scrollpanel before it acually closes, the ScrollPanel throws an error.
The Scrollpanel is calling the mouseover event.
But the $refs are null, because I already closed the dialog.
Reproducer
https://stackblitz.com/edit/34zr2e?file=src%2FApp.vue
PrimeVue version
3.37.0
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Click the close Button of the Dialog.
Before the dialog closes move the mouse over the scrollpanel.
Expected behavior
eg. Instantly return from the moveBar function, if the $refs are null.
The text was updated successfully, but these errors were encountered: