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
To sum it up, when I try to focus an input (though JS) after an option selection, the focus is correctly given to the input when using a Combobox, but when using a Listbox, the focus stays trapped on the listbox element.
For the demo I've been using deprecated APIs (i.e. Combobox.Button) but the problem is the same when using v2 APIs (i.e. ComboboxButton).
Experienced this on both Firefox 127.0 and Chromium 121.0.6128.0.
So my question is : Is this difference intended or possibly a bug ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Greetings,
I've been experiencing some inconsistent focus behavior and wanted to know if it was the intended behavior or a bug.
Repro link : CodeSandbox
To sum it up, when I try to focus an input (though JS) after an option selection, the focus is correctly given to the input when using a Combobox, but when using a Listbox, the focus stays trapped on the listbox element.
For the demo I've been using deprecated APIs (i.e.
Combobox.Button
) but the problem is the same when using v2 APIs (i.e.ComboboxButton
).Experienced this on both Firefox 127.0 and Chromium 121.0.6128.0.
So my question is : Is this difference intended or possibly a bug ?
Thank you for yours answers :)
Beta Was this translation helpful? Give feedback.
All reactions