fix: disable vaul repositionInputs to fix iOS keyboard in drawers
Some checks failed
CI / Check / Test (push) Failing after 6m20s
Some checks failed
CI / Check / Test (push) Failing after 6m20s
This commit is contained in:
@@ -4,9 +4,10 @@ import { Drawer as DrawerPrimitive } from "vaul"
|
|||||||
import { cn } from "@/lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
function Drawer({
|
function Drawer({
|
||||||
|
repositionInputs = false,
|
||||||
...props
|
...props
|
||||||
}: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
}: React.ComponentProps<typeof DrawerPrimitive.Root>) {
|
||||||
return <DrawerPrimitive.Root data-slot="drawer" {...props} />
|
return <DrawerPrimitive.Root data-slot="drawer" repositionInputs={repositionInputs} {...props} />
|
||||||
}
|
}
|
||||||
|
|
||||||
function DrawerTrigger({
|
function DrawerTrigger({
|
||||||
|
|||||||
Reference in New Issue
Block a user