swordev / suid

A port of Material-UI (MUI) built with SolidJS.
https://suid.io
MIT License
673 stars 48 forks source link

Dialog does not auto focus or lock focus #225

Closed quasaray closed 1 year ago

quasaray commented 1 year ago

When dialogs are opened, they do not gain focus. This means that esc can't be used to close them, as it does not receive the keyboard events. This is present on the alert demo on the website, alerts will not close when esc is pressed, but the same alert example for MUI receives the focus.

It is also possible for the focus to leave the dialog, that may just be because the focus trap has not been implemented yet.

juanrgm commented 1 year ago

Duplicated (https://github.com/swordev/suid/issues/74).