diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 136b2dca8c..65c8c813f3 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -135,6 +135,7 @@ const TextArea = React.forwardRef( onChange={handleChange} onCompositionEnd={onInternalCompositionEnd} ref={innerRef} + maxLength={maxLength} /> ); diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index c4883630c8..5644c061e0 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -3317,6 +3317,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] = >