-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Combobox search input not focusable within Drawer (Svelte 5) #1493
Comments
You should be using |
@huntabyte Thanks that seems to work! |
Ah! actually i realized what the issue is @huntabyte - if you have snapPoints set on the drawer, then the input won't focus: https://stackblitz.com/edit/github-aibhpm?file=src%2Froutes%2F%2Bpage.svelte |
It seems to be focusing for me @chanmathew : CleanShot.2024-11-16.at.12.22.34.mp4 |
@huntabyte the combobox does open but if you have snapPoints set on the drawer, you can't focus the CleanShot.2024-11-16.at.12.26.50.mp4 |
Ah the input inside the popover, got it. And this only happens when snap points are enabled? That is very strange as the two should be completely unrelated. |
Hm this seems more like a focus trap race condition going on here which would be something to do with Bits UI where focus remains trapped inside the Drawer vs moving into the Popover |
Yup that's right! At least so far from my testing, it's only when the snapPoints is set. |
Yeah, I see that in the reproduction... very interesting. I'll look into this further as I'm not sure if it falls on Bits UI or Vaul Svelte (though a vaul svelte action triggers this behavior, it could be an underlying issue with bits that we need to support) |
Describe the bug
Hi folks - Please see the below video.
CleanShot.2024-11-15.at.10.59.06.mp4
There are a few issues:
Reproduction
Here's a repro:
https://stackblitz.com/edit/github-aibhpm?file=src%2Froutes%2F%2Bpage.svelte
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: