fix: prevent auto focus on open for sidebar drawer

This commit is contained in:
hchengting 2025-08-12 02:04:09 +09:00
parent 76ca258f23
commit 87a661286b

View file

@ -20,7 +20,7 @@ const HomeSidebarDrawer = () => {
<MenuIcon className="size-5 text-foreground" />
</Button>
</SheetTrigger>
<SheetContent side="right" className="w-80 max-w-full bg-background">
<SheetContent side="right" className="w-80 max-w-full bg-background" onOpenAutoFocus={(e) => e.preventDefault()}>
<SheetHeader>
<SheetTitle />
</SheetHeader>