-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Drawer component is very broken on mobile #108
Comments
Yeah it looks like the auto focus on mobile might be an issue. |
I think maybe the right choice is to turn off auto focus with the |
I tried that but it didn't work, I also tried disabling DrawerContent#trapFocus but it made it worse |
Yeah I could be incorrect on how I think autoFocus works but I don't think it really does anything setting it to false. |
oof this one is ugly. I'll need to dig into this one. Focusing the input is the correct behavior, but some things have to be taken into account to compute the right positioning with the keyboard factored in. I'm going to move this where it belongs (vaul-svelte). |
Describe the bug
The Drawer in the @next version breaks inputs on mobile making the keyboard open and close in a very strange way
Reproduction
It happens in the documentation example itself
https://next.shadcn-svelte.com/docs/components/drawer#responsive-dialog
reproduction.mp4
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: