usePreventScroll behaviour: clear blocking scroll styles and listeners on isDisabled === true #2965
borispinus
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In current implementation useLayoutEffect does nothing on isDisabled === true
react-spectrum/packages/@react-aria/overlays/src/usePreventScroll.ts
Line 45 in 7a5e585
But in my opinion, correct behaviour is to remove styles and event listeners which were set previously (when isDisabled option was equal to false)
Beta Was this translation helpful? Give feedback.
All reactions