mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 03:22:59 +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}
|
onChange={handleChange}
|
||||||
onCompositionEnd={onInternalCompositionEnd}
|
onCompositionEnd={onInternalCompositionEnd}
|
||||||
ref={innerRef}
|
ref={innerRef}
|
||||||
|
maxLength={maxLength}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3317,6 +3317,7 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] =
|
|||||||
>
|
>
|
||||||
<textarea
|
<textarea
|
||||||
class="ant-input"
|
class="ant-input"
|
||||||
|
maxlength="100"
|
||||||
/>
|
/>
|
||||||
</div>
|
</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`] = `
|
exports[`TextArea maxLength should support maxLength 1`] = `
|
||||||
<textarea
|
<textarea
|
||||||
class="ant-input"
|
class="ant-input"
|
||||||
|
maxlength="10"
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user