Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GnotAGnoob opened this issue May 12, 2024 · 1 comment · May be fixed by #469
Closed

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

GnotAGnoob opened this issue May 12, 2024 · 1 comment · May be fixed by #469
Labels
bug Something isn't working Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.

Comments

@GnotAGnoob
Copy link

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

@GnotAGnoob GnotAGnoob changed the title double click neede to click out of combobox to input Double click needed to click out of combobox to input May 12, 2024
@GnotAGnoob GnotAGnoob changed the title Double click needed to click out of combobox to input Double click needed to click out of the combobox to focus an input element May 12, 2024
@huntabyte huntabyte added bug Something isn't working Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5. labels Jun 27, 2024
@huntabyte huntabyte mentioned this issue Sep 25, 2024
4 tasks
@huntabyte
Copy link
Owner

Closing as fixed in bits-ui@next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Svelte 5 Roadmap This issue is planned to be addressed or fixed when the library migrates to Svelte 5.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants