-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
- BUG - Drawer does not reposition to bottom of the screen when using input in IOS #503
Comments
|
Is there a workaround tot this issue for the time being? |
ScreenRecording_11-03-2024.23-01-15_1_1.mp4
I've noticed that when I apply the following class to the Drawer.Content:
`"fixed inset-x-4 bottom-4 z-50 mt-24 flex
h-auto flex-col overflow-hidden rounded-xl border bg-background",`
and place a regular text input inside of it, and then click on it on iOS, the drawer’s bottom position appears to reset to 0 after the keyboard opens, and remains 0 after it closes.
The issue becomes even stranger with a phone input field—on iOS, the larger keyboard pushes the drawer much higher than expected.
Adjusting bottom-4 to bottom-0 does not resolve the issue with the phone input and the drawer being much higher then usual.
It would be optimal for the drawer to reset to the initial bottom-# height you provide after the input is done, even better to maintain the bottom-4 during the keyboard open aswell, for me i like a little spacing from the bottom.
Attached is the screen recording, and my full drawer file.
The text was updated successfully, but these errors were encountered: