Drawer without overlay still prevents interaction with the DOM outside the drawer
See original GitHub issueWhat package has an issue
Describe the bug
Just upgraded from 4.x to the latest 5.x version.
Drawers with withOverlay: false
before allowed you to interact with the DOM behind the drawer. The drawer root had a height and width of 0px.
Now, even with withOverlay: false
the drawer root is fixed and inset 0 which prevents clicks from making it to the dom behind.
What version of @mantine/hooks page do you have in package.json?
5.2
If possible, please include a link to a codesandbox with the reproduced problem
https://codesandbox.io/embed/misty-haze-8jx2p5
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
The withOverlay prop should be passed into the createStyles method and alter the output of the root styles.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
reactjs - MUI - Remove overlay in Drawer? - Stack Overflow
What I am looking for is the drawer to be closable when clicking outside its boundary, and while it is open I would...
Read more >Drawer - Ant Design
A Drawer is a panel that is typically overlaid on top of a page and slides in from the side. It contains a...
Read more >Modal - Eufemia - DNB Design System
Disable the body scroll possibility. Make the Modal / Drawer scrollable if needed. Dim the body / background with an overlay. #Structure and...
Read more >How to detect a click outside a React component
In this tutorial, learn a few ways how to implement click detection outside of both functional and class-based React components.
Read more >ARIA: dialog role - Accessibility - MDN Web Docs - Mozilla
... the page content using an overlay. Dialogs can be either non-modal (it's still possible to interact with content outside of the dialog) ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It probably should. It doesn’t make sense for that behavior when
withOverlay={false}
. @rtivital ?Fixed on https://github.com/mantinedev/mantine/pull/2351 (Release 5.3.2)