Disclosure for full screen overlay mobile menu – prevent behind overlay content scroll #1636
Unanswered
therealgilles
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the Disclosure component to create a full-screen overlay mobile menu. To disable scrolling on the content behind the overlay, I need to set 'overflow: hidden' on the body tag when the menu is open and remove it when the menu is closed.
I do not see any callback functions that would easily allow me to do this. Any ideas or suggestions?
Beta Was this translation helpful? Give feedback.
All reactions