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

Modal malfunction on Chrome for Android when virtual keyboard is dismissed and modal closed #113

Open
rob-rooam opened this issue Feb 23, 2023 · 2 comments

Comments

@rob-rooam
Copy link

In our web application, we have identified an issue where the modal stops working under certain conditions. Specifically, this occurs when the user uses the Chrome browser on an Android device, the modal contains a field, and the virtual keyboard is dismissed. Once the modal is closed, it no longer functions properly. Looks like the main div that contains the react-modal-sheet-container and the backdrop button is not getting cleared up under this given context. It works for iOS though.

I reproduced it in this repo

@immortal-blog
Copy link

immortal-blog commented Apr 5, 2023

Yes. This is a bug. Even in safari for iOS, the height of this modal changes after opening and closing the virtual keyboard, becoming taller. Even destroying this component is useless. This will affect the display experience.
This problem can be triggered when in the iOS 16.3.1 web PWA app (Safari - Add to Home Screen).
This problem will not happen in the Safari browser.

@JMarchandev
Copy link

JMarchandev commented May 23, 2024

<Sheet
isOpen={true}
disableDrag={true}
detent="full-height"
snapPoints={[0.75]}
onClose={() => {}}
disableScrollLocking={true} // add this one <----------

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

No branches or pull requests

3 participants