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
The styling in the body is not cleared correctly when closing a Dialog, if multiple Dialogs have been open simultaneously. This means that the body will have overflow: "hidden", so all scroll is disabled.
Steps to reproduce the bug
Open a Dialog.
Open another Dialog (they don't need to be nested in the HTML).
Close one Dialog.
Close the other dialog.
The body now still has style="overflow: hidden; padding-right: 15px;".
Expected behavior
I would expect the body's style to have returned to normal.
Specifications
Version: 0.42.5
Browser: Microsoft Edge
OS: Windows 11
Additional context
To try to get around this problem, I originally tryed to reset the styles manually in the onClose-handler of the last dialog i closed. The styles where then reset, but then set back to "overflow: hidden; padding-right: 15px;".
The text was updated successfully, but these errors were encountered:
Thanks, we need to take a look at the useHideBodyScroll hook and make it more robust if it is triggered again while already active. Having two dialogs open at the same time is not really something that is supposed to happen but I can see some legit scenarios where it could happen anyway so it is something we need to fix.
Describe the bug
The styling in the body is not cleared correctly when closing a Dialog, if multiple Dialogs have been open simultaneously. This means that the body will have overflow: "hidden", so all scroll is disabled.
Steps to reproduce the bug
The body now still has style="overflow: hidden; padding-right: 15px;".
Expected behavior
I would expect the body's style to have returned to normal.
Specifications
Additional context
To try to get around this problem, I originally tryed to reset the styles manually in the onClose-handler of the last dialog i closed. The styles where then reset, but then set back to "overflow: hidden; padding-right: 15px;".
The text was updated successfully, but these errors were encountered: