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

reach-portal element remains in DOM after modal close, blocking UI interactions #299

Open
0xLDev opened this issue Sep 19, 2024 · 1 comment

Comments

@0xLDev
Copy link

0xLDev commented Sep 19, 2024

Description

When opening a modal using the react-spring-bottom-sheet library, a reach-portal element is added to the DOM. After closing the modal, the reach-portal element does not disappear immediately, causing the UI to become unresponsive. The UI becomes interactive again only after the reach-portal element is removed from the DOM.

Steps to Reproduce

  1. Open a modal using react-spring-bottom-sheet.
  2. Close the modal.
  3. Observe that the reach-portal element remains in the DOM for some time.
  4. Notice that the UI is blocked and unresponsive until the reach-portal element disappears from the DOM.

Expected Behavior

The reach-portal element should be removed from the DOM immediately after the modal is closed, ensuring the UI remains interactive.

Actual Behavior

The reach-portal element persists in the DOM for a few seconds after closing the modal, causing the UI to be blocked during this time.

Environment

  • react-spring-bottom-sheet version: 3.4.1
  • Browser: Chrome
  • OS: All
@sadside
Copy link

sadside commented Sep 19, 2024

v arhcive

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

2 participants