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
this functionality worked fine in v1.7, but since upgrading to v2, when clicking the input, it doesn't go into focus, the focus stays on the original ComboBoxInput, I found a hack to fix this by manually focusing the input on click
<input // <<<---- now the input will focus
onClick={(e) => { e.target.focus() }}
onFocus={() => { console.log('focused') }}
className='bg-white text-black rounded-md border border-gray-900' type="text"
/>
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v2.2.0
What browser are you using?
Brave, Chrome, Firefox
Reproduction URL
https://github.com/se-omar/combobox-bug
Describe your issue
I'm using the autocomplete combobox component, and I need to add an input field below all the options like the below snippet
this functionality worked fine in v1.7, but since upgrading to v2, when clicking the input, it doesn't go into focus, the focus stays on the original
ComboBoxInput
, I found a hack to fix this by manually focusing the input on clickI also recorded a video for reproduction: https://jam.dev/c/d9e24fe6-641a-478c-be6e-4a0d6b513405
The text was updated successfully, but these errors were encountered: