zag icon indicating copy to clipboard operation
zag copied to clipboard

Combobox with multiple=true and selectionBehavior=clear doesn't work

Open anilanar opened this issue 1 year ago • 0 comments

🐛 Bug report

💥 Steps to reproduce

  1. Run pnpm start-react in this repo.
  2. Go to http://localhost:3000/combobox
  3. Enable multiple and set selectionBehavior to clear
  4. 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

anilanar avatar Feb 21 '24 10:02 anilanar