-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
bug: V5 Dialog does not put focus on first focusable element #3440
Comments
Thank you @mathieulesniak
for reporting issues. It helps daisyUI a lot 💚
|
fixed in |
It seems that this issue has reoccurred in 5.0.0-beta.9. It was working fine in beta.8. |
Also experiencing this issue in 5.0.0. The codepen for reproducing also still seems valid, you just have to replace the version, none the less should i open a new issue? |
This effectively killed my cmd+k modal today... |
This can be easily seen on the demo of https://nexus.daisyui.com/dashboards/ecommerce - just click the search button on the top (it should automatically set focus to the input) |
I'm working on it |
seems to be fixed! 👍 thank you |
What version of daisyUI are you using?
v5 beta 6
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://codepen.io/mlesniak/pen/MYgxPxr
Describe your issue
Context:
When opening a
dialog
html element, focus is automatically set to first focusable element in the dialog.In DaisyUI v5 beta 6, the first focusable element does not take focus once the modal is opened (JS way)
In addition, trying to focus an
input
with JS does not seems to work either.In v4, focus was ok when opening a modal : https://codepen.io/mlesniak/pen/ogvVaOR (whereas text field does not show blinking caret)
Steps to reproduce:
The text was updated successfully, but these errors were encountered: