Open Mr-Vipi opened 3 months ago
did you manage to fix that bug ? Im having the exact same thing
@Mr-Vipi @devStr0ke
I was having the same problem. In my case, I added the ScrollArea and the parameters below and the problem was resolved.
<Drawer
preventScrollRestoration={false}
disablePreventScroll
noBodyStyles
>
<DrawerTrigger asChild>
...
</DrawerTrigger>
<DrawerContent className="max-h-[calc(100dvh-2rem)]">
<ScrollArea className="overflow-y-auto">
...
</ScrollArea>
</DrawerContent>
</Drawer>
@Mr-Vipi @devStr0ke
I also experienced the same bug only on iOS, not on Android phones. The cause of the problem is likely due to a conflict between the bottom URL input bar on iOS phones and the device height. In my case, I resolved it by using window.scrollTo(0, 0); when the drawer operates.
Describe the bug
Im using the drawer component as below:
https://github.com/shadcn-ui/ui/assets/58825526/55524f45-72ed-494b-ac65-193169226231
in this video is the drawer, the first time that i open it it works as it should the second time after the first vertical swipe it frezzed and you can only close it when you click the continue button or out of the drawer screen.
Affected component/components
Drawer, ScrollArea
How to reproduce
in this video is the drawer, the first time that i open it it works as it should the second time after the first vertical swipe, it frezzes and you can only close it when you click the continue button or out of the drawer screen.
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting