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

Dragging over a button that closes the modal causes TypeError: null is not an object (evaluating 'sheetRef.current.getBoundingClientRect') and breaks subsequent modals #188

Open
sambet1997 opened this issue Jan 3, 2025 · 0 comments

Comments

@sambet1997
Copy link

sambet1997 commented Jan 3, 2025

When interacting with a button inside the modal that closes it, attempting to drag (touch and move) over this button and then releasing on the same button triggers an error:

TypeError: null is not an object (evaluating 'sheetRef.current.getBoundingClientRect')

After this error occurs, no other modals in the project can be opened. The error seems to leave the internal state of the library in an unusable state, breaking modal functionality across the entire application.

To reproduce this issue, the drag gesture must start on the button and end (release) on the same button, triggering the modal’s closure logic.

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

1 participant