diff --git a/packages/components/input/src/use-input.ts b/packages/components/input/src/use-input.ts index 26e0e15eff..c71ae47bb6 100644 --- a/packages/components/input/src/use-input.ts +++ b/packages/components/input/src/use-input.ts @@ -165,8 +165,10 @@ export function useInput { if (!domRef.current) return; + if (typeof ref == "function") ref(domRef as any); + setInputValue(domRef.current.value); - }, [domRef.current]); + }, [domRef.current, domRef.current?.value]); const { labelProps,