Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace ReactRemoveScroll with FloatingOverlay #81

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Sep 24, 2023

It seems body.style.overflow = "hidden" suffices for simple case.
cf. https://github.com/floating-ui/floating-ui/blob/07d8e853c81925316bf712270f9533962bc19fda/packages/react/src/components/FloatingOverlay.tsx#L42-L46

Even if it doesn't work for iOS, that's not a big deal either anyways.

@hi-ogawa hi-ogawa merged commit fdd9c2d into main Sep 24, 2023
1 check passed
@hi-ogawa hi-ogawa deleted the refactor-simplify-remove-scroll branch September 24, 2023 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant