huntabyte / bits-ui

The headless components for Svelte.
https://bits-ui.com
MIT License
953 stars 70 forks source link

Double click needed to click out of the combobox to focus an input element #542

Open GnotAGnoob opened 1 month ago

GnotAGnoob commented 1 month ago

Describe the bug

When the dropdown menu is visible and you want to switch to another input element, you need to click twice: once to close the dropdown menu and a second time to focus on the input element. This behavior also occurs in "shadcn-svelte," which uses "bits.ui." I also tested if this happens in React's "shadcn," and it does not. I don't think that the double-click is the desired behavior.

Reproduction

https://stackblitz.com/edit/github-u5ovki?file=src%2Froutes%2F%2Bpage.svelte

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600 6-Core Processor
    Memory: 20.98 GB / 31.89 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.6 - C:\ProgramData\chocolatey\bin\pnpm.EXE
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @sveltejs/kit: ^2.5.5 => 2.5.5
    bits-ui: ^0.21.5 => 0.21.5
    svelte: ^4.0.5 => 4.1.1

Severity

annoyance