You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thank you @mathieulesniak
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
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: