Body scroll should be restored when detached mode is responsively removed
aldenquimby opened this issue · 4 comments
Description
Body scroll should be restored when detached mode is responsively removed
Reproduction
Preview → - default sandbox has the bug
Steps
- Go to default sandbox
- Set a wide viewport so you do not have detached mode to start
- Open search panel and notice scrolling the page works
- With search panel open, decrease your viewport so detached mode is turned on
- With search panel still open, increase your viewport so detached mode is turn off
- Notice scrolling the page is now broken
Expected behavior
- scrolling the page should work when detached mode is off
Environment
- OS: [e.g. Windows / Linux / macOS / iOS / Android]: macOS
- Browser: [e.g. Chrome, Safari]: Chrome latest
- Autocomplete version: [e.g. 1.0.0]: 1.17.0
I am interested in taking this up. I checked the sandbox and opened the app in a new tab. For large screen, you can scroll the entire page but for mobile view or smaller screen, somehow the scroll event is not getting activated.
One solution I can think of can't we keep the cancel button even in big screen? Like in my opinion, its still pretty frustating that I can't close the search menu after opening it. I guess we can keep a backdrop in the background when opening the search bar so as to let the user know they can't make change in the background before making their search.
@career-tokens I have a fixed posted on #1251
My team is using a forked version based on that fix in production, and all is well. Waiting on code review + tests and hopefully it will merge soon
Thanks for letting me know. I don't know whether I should ask it here but can you let me know whether you have NextJS based repositories with good first issues?