diff --git a/apps/ui/src/components/ui/kbd.tsx b/apps/ui/src/components/ui/kbd.tsx index 1e726b2c..670a3872 100644 --- a/apps/ui/src/components/ui/kbd.tsx +++ b/apps/ui/src/components/ui/kbd.tsx @@ -15,9 +15,9 @@ function Kbd({ className, ...props }: React.ComponentProps<'kbd'>) { ); } -function KbdGroup({ className, ...props }: React.ComponentProps<'div'>) { +function KbdGroup({ className, ...props }: React.ComponentProps<'span'>) { return ( - { - if (isSearchOpen) { - // Small delay to ensure the CommandInput is rendered - setTimeout(() => { - const searchInput = containerRef.current?.querySelector( - '[data-slot="command-input"]' - ) as HTMLInputElement; - if (searchInput) { - searchInput.focus(); - } - }, 0); - } - }, [isSearchOpen]); - const handleGoToParent = useCallback(() => { if (parentPath) { onNavigate(parentPath); @@ -308,7 +293,11 @@ function PathInput({
- +