Skip to content

Commit

Permalink
fix: Revert "fix: TextArea missing maxLength attr." (#33312)
Browse files Browse the repository at this point in the history
* Revert "fix: TextArea missing maxLength attribute (#32448)"

This reverts commit ee703c1.

* fix: snapshot
  • Loading branch information
afc163 authored Dec 15, 2021
1 parent 678cf49 commit b164223
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion components/form/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4017,7 +4017,6 @@ exports[`renders ./components/form/demo/register.md correctly 1`] = `
<textarea
class="ant-input"
id="register_intro"
maxlength="100"
/>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion components/input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ const TextArea = React.forwardRef<TextAreaRef, TextAreaProps>(
onChange={handleChange}
onCompositionEnd={onInternalCompositionEnd}
ref={innerRef}
maxLength={maxLength}
/>
);

Expand Down
1 change: 0 additions & 1 deletion components/input/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3336,7 +3336,6 @@ exports[`renders ./components/input/demo/textarea-show-count.md correctly 1`] =
>
<textarea
class="ant-input"
maxlength="100"
/>
</div>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ 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"
/>
`;

Expand Down

0 comments on commit b164223

Please sign in to comment.