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

Unable to click outside the drawer if modal is false and snap points are used #534

Open
val-o opened this issue Jan 7, 2025 · 0 comments

Comments

@val-o
Copy link

val-o commented Jan 7, 2025

When using drawer with snapPoints, clicking outside the drawer (with modal={false}) is impossible due to pointer-events:none being set on the body.
Drawer is controlled with open={someState} prop being passed. Trigger is not used

document.body.style.pointerEvents = 'auto';

This is not getting fired because changin open props will not call setIsOpen

window.requestAnimationFrame(() => {

This is not getting fired because drawer is already mounted, and [open] is not part of dependencies, so opening a drawer will not fire this effect

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