shadcn-vue icon indicating copy to clipboard operation
shadcn-vue copied to clipboard

[Bug]: Combobox multiple select clears search field text on first selection

Open saschwarz opened this issue 1 year ago • 1 comments

Reproduction

https://codesandbox.io/p/devbox/shadcn-vue-comboboxdemo-forked-m2576d?file=%2Fsrc%2FApp.vue%3A36%2C40

Describe the bug

In the repro:

  1. click on 'Select framework'
  2. type the letter n in the search box
  3. click on either Nextjs or Nuxt and the search input field is cleared and the full list is redisplayed.

This isn't very helpful for users who want to select multiple entries for the same search text.

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (2) x64 AMD EPYC
    Memory: 2.32 GB / 4.01 GB
    Container: Yes
    Shell: Unknown
  Binaries:
    Node: 18.20.4 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.7.0 - /usr/local/bin/npm
  npmPackages:
    radix-vue: latest => 1.9.3 
    shadcn-vue: latest => 0.10.5 
    vue: latest => 3.4.36

Contributes

  • [ ] I am willing to submit a PR to fix this issue
  • [ ] I am willing to submit a PR with failing tests

saschwarz avatar Aug 12 '24 20:08 saschwarz