From c2cbf9090747b4fdf172a306806a4e34b927c65b Mon Sep 17 00:00:00 2001 From: ComputelessComputer Date: Thu, 5 Mar 2026 02:58:59 +0900 Subject: [PATCH] refactor: use HTMLInputElement ref in CommandInput Replace CommandPrimitive.Input component ref with HTMLInputElement type to improve type safety and provide more direct access to the underlying input element. --- packages/ui/src/components/ui/command.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/ui/command.tsx b/packages/ui/src/components/ui/command.tsx index 07508711bf..1eb2867e18 100644 --- a/packages/ui/src/components/ui/command.tsx +++ b/packages/ui/src/components/ui/command.tsx @@ -34,7 +34,7 @@ const CommandDialog = ({ children, ...props }: DialogProps) => { }; const CommandInput = React.forwardRef< - React.ComponentRef, + HTMLInputElement, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => (