Closed marcinzarycki closed 1 month ago
Thanks for reporting this issue @marcinzarycki.
Scenario 1: Just because the text typed matches an option doesn't make it "selected" in that sense. Only an actual selection event (keyboard or pointer) makes an option selected.
Scenario 2: That's definitely a bug that needs to be fixed.
I just pushed a fix for this in Zag.js. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.
Description
When I press Enter after typing in the Combobox but without using the arrow keys to select an option, the typed in text remains in the Combobox input even though no value is set/selected, even after you tab out or click out of the Combobox. I expected the input to be cleared once focus left the Combobox if no option was selected.
Link to Reproduction (or Detailed Explanation)
https://ark-ui.com/react/docs/components/combobox
Steps to Reproduce
Scenario 1:
Scenario 2:
Ark UI Version
4.0.0
Framework
Browser
Google Chrome Version 129.0.6668.70
Additional Information
No response