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
overflow: hidden; set on body on open overflow: auto; set on body on close
Actual Behavior
no style set on body on open overflow: auto; set on body on close if closing by uncontrolled methods
no style set on body on close if setting open to false in a controlled manner (not shown in test)
The text was updated successfully, but these errors were encountered:
In v2 lockScrolll() and resetScroll() are only called on uncontrolled behaviour for Popups.
The useEffect hook only toggles the
open
state.Version
2.0.1
Test Case
https://codesandbox.io/s/reactjs-popup-issue-template-forked-jh2bd
Expected Behavior
overflow: hidden;
set on body on openoverflow: auto;
set on body on closeActual Behavior
no style set on body on open
overflow: auto;
set on body on close if closing by uncontrolled methodsno style set on body on close if setting open to false in a controlled manner (not shown in test)
The text was updated successfully, but these errors were encountered: