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
i used your scrollAreaProps into my project and everything was good
can you show your package.json and full code of component where you are using scrollbar?
found the issue
as i understand @Niryo is working with repo https://github.com/Niryo/react-playground
there he is using jsdom for tests and that lib doesn't provide properties offsetWidth and clientWidth for elements
current repo has util function getScrollbarWidth which uses these properties
and the result is NaN because undefined - undefined = NaN
scrollbar uses that result for generate styles and react throw warning for mutate NaN
to prevent such situation:
function getScrollbarWidth() {
...
return scrollbarWidth || 0;
}
Im trying to use the scrollbar with autoHeight but it triggers the following warning:
This is how I am using the Scrollbar:
Am I missing something?
Thanks!
The text was updated successfully, but these errors were encountered: