diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 8252753983..54704de678 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -67,6 +67,7 @@ export interface TextAreaRef { focus: (options?: InputFocusOptions) => void; blur: () => void; resizableTextArea?: RcTextAreaRef['resizableTextArea']; + nativeElement: HTMLElement | null; } const TextArea = forwardRef((props, ref) => { @@ -134,6 +135,7 @@ const TextArea = forwardRef((props, ref) => { triggerFocus(innerRef.current?.resizableTextArea?.textArea, option); }, blur: () => innerRef.current?.blur(), + nativeElement: innerRef.current?.nativeElement || null, })); const prefixCls = getPrefixCls('input', customizePrefixCls); diff --git a/components/input/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/input/__tests__/__snapshots__/demo-extend.test.ts.snap index 6e840eab1f..a469f2608f 100644 --- a/components/input/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/input/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -12160,6 +12160,33 @@ Array [ , +
, +