mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
fix: TextArea missing maxLength attribute (#32448)
This commit is contained in:
parent
3b27f47097
commit
ee703c187e
@ -135,6 +135,7 @@ const TextArea = React.forwardRef<TextAreaRef, TextAreaProps>(
|
||||
onChange={handleChange}
|
||||
onCompositionEnd={onInternalCompositionEnd}
|
||||
ref={innerRef}
|
||||
maxLength={maxLength}
|
||||
/>
|
||||
);
|
||||
|
||||
|
@ -3317,6 +3317,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] =
|
||||
>
|
||||
<textarea
|
||||
class="ant-input"
|
||||
maxlength="100"
|
||||
/>
|
||||
</div>
|
||||
`;
|
||||
|
@ -245,6 +245,7 @@ exports[`TextArea allowClear should not show icon if value is undefined, null or
|
||||
exports[`TextArea maxLength should support maxLength 1`] = `
|
||||
<textarea
|
||||
class="ant-input"
|
||||
maxlength="10"
|
||||
/>
|
||||
`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user