zag
zag copied to clipboard
Combobox with multiple=true and selectionBehavior=clear doesn't work
🐛 Bug report
💥 Steps to reproduce
- Run
pnpm start-reactin this repo. - Go to
http://localhost:3000/combobox - Enable
multipleand setselectionBehaviortoclear - Play with combobox.
Result: Combobox input doesn't stay empty. It's not cleared after selections. First interaction behavior is different than follow-up interactions. In general, it behaves wrong, but hard to describe the wrongness.
🧐 Expected behavior
Combobox input always remains empty to allow custom value rendering.
🌍 System information
| Software | Version(s) |
|---|---|
| Zag Version | 5a199fdc8c9de339d766531bf70c584e652ccf3f |
| Browser | chrome, firefox |
| Operating System | linux |
📝 Additional information
https://github.com/chakra-ui/zag/assets/753736/1fbb7544-47a4-4099-8d5c-eec8a2e2eeb4