diff --git a/packages/components/input/src/use-input.ts b/packages/components/input/src/use-input.ts index de1acf355b..7c10a36f1a 100644 --- a/packages/components/input/src/use-input.ts +++ b/packages/components/input/src/use-input.ts @@ -417,8 +417,8 @@ export function useInput { - if (domRef.current && e.currentTarget === e.target) { + onClick: () => { + if (domRef.current) { domRef.current.focus(); } }, @@ -445,8 +445,8 @@ export function useInput { - if (domRef.current && e.currentTarget === e.target) { + onClick: () => { + if (domRef.current) { domRef.current.focus(); } },