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
Without this upgrade I need to use module resolution to enforce react-remove-scroll version 2.5.6 to prevent the console error to appear in my console.
When I use a Select component inside the Dialog, I get an error when clicking the Select trigger.
react-remove-scroll-bar: cannot calculate scrollbar size because it is removed (overflow:hidden on body
at RemoveScrollBar (http://localhost:3000/project-x/index.js:45320:29)
at RemoveScrollSideCar (http://localhost:3000/project-x/index.js:45444:37)
I noticed that react-remove-scroll adds an overflow hidden on the body element that is causing this error. Is there any solution how to fix this?
The console error in the linked discussion can be prevented by upgrading the
react-remove-scroll
to version2.5.6
which includes the fix ofreact-remove-scroll-bar
version2.3.4
.For example in the Dialog package.json
Without this upgrade I need to use module resolution to enforce
react-remove-scroll
version2.5.6
to prevent the console error to appear in my console.Discussed in #1594
Originally posted by JhonM August 3, 2022
Hi,
When I use a
Select
component inside theDialog
, I get an error when clicking theSelect
trigger.I noticed that react-remove-scroll adds an overflow hidden on the
body
element that is causing this error. Is there any solution how to fix this?For clarification I created a sandbox where I could reproduce it: https://codesandbox.io/s/select-in-dialog-primitive-react-remove-scroll-error-dfkobw
Thank You in advance and keep up the great work!
Jhon
The text was updated successfully, but these errors were encountered: