question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Drawer without overlay still prevents interaction with the DOM outside the drawer

See original GitHub issue

What package has an issue

@mantine/core

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:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nmay231commented, Sep 1, 2022

It probably should. It doesn’t make sense for that behavior when withOverlay={false}. @rtivital ?

0reactions
italodeandracommented, Sep 17, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found