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

Unexpected behavior in the Drawer component when using the 'keyboard' and 'disableBackdropClick' properties together. #837

Open
LeonamMoura opened this issue Apr 30, 2023 · 0 comments

Comments

@LeonamMoura
Copy link

Bug report 🐞

Using the keyboard and disableBackdropClick properties on the Drawer component, follow these steps to reproduce the issue:

  1. Open the Drawer
  2. Click outside the Drawer (on the backdrop/shadow).
  3. press "Esc"

The Drawer does not close when pressing Esc if the last click was on the backdrop / outside the Drawer

Version & Environment

  • Version of browser: Google Chrome 112.0.5615.138
  • Version of geist-ui/core: 2.3.8

Expected Behaviour

The behavior I expect is that, even if the last click was outside the Drawer, the component closes when pressing Esc.

Some users may get confused and may not understand that it is necessary to click inside the Drawer container for the Esc button to work to close it

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