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
When a modal contains one or more input boxes, the first input box will always get focus automatically.
If I manually add a close button in the upper right corner, it will trigger a validation when I click it. This is not good. How can I avoid the input box getting focus when opening the modal?
Additional context
Logs
The text was updated successfully, but these errors were encountered:
You can use a ref on a hidden div to change the initial focus. Sadly directly passing null or undefined will not work as this will then automatically use the first element.
Environment
nuxt: 3.15.1
Version
v2.20.0
Reproduction
Description
When a modal contains one or more input boxes, the first input box will always get focus automatically.
If I manually add a close button in the upper right corner, it will trigger a validation when I click it. This is not good. How can I avoid the input box getting focus when opening the modal?
Additional context
Logs
The text was updated successfully, but these errors were encountered: