Closed davidrhoderick closed 4 years ago
This would be great to have built into this component but who knows how many use-cases there are (perhaps it's just me and a couple others).
Therefore, I was able to use disable-scroll and the onClose and onOpen handlers (along with a useEffect hook to allow scrolling on load) to get this working.
As opposed to another confusingly titled issue, I'd actually like a relatively positioned menu toggle that cancels scrolling on opening the menu. I've tried what the wiki states and it hasn't worked yet, plus, I realized that the toggle button becomes fixed when I apply the wiki's styles.
Here is the demo site and repository:
It uses a scroll-to-top button instead of a fixed react-burger-menu.