Pressing ESC not working as expected with dialogs+popups #990
Labels
bug
Things that aren't working right in the library.
good first issue
This bug or task is a good first issue for new contributors.
help wanted
Ready for a contributor to tackle.
Please open the following MUI demo:
https://mui.com/material-ui/react-dialog/#optional-sizes
Now click on the "OPEN MAX-WIDTH DIALOG" button and after that open the popup of the "maxWidth" select field. Now you have an opened dialog plus an opened popup at the same time.
Now press
Escape
=> Result: The popup of the select field closes while the dialog stays open.Now press
Escape
again => Result: The dialog closes.I'd say, this is the expected behavior.
Now try the same with the following Shoelace demo:
https://codepen.io/xdev1/pen/WNyrjgE?editors=1000
Result: Both dialog AND popup will close immediately when you press
Escape
for the first time.I personally think, this should be considered a bug in Shoelace and not just somehow be fixed in userland.
The text was updated successfully, but these errors were encountered: