Skip to content

Commit

Permalink
feat: relation to issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
mumiao committed Dec 3, 2020
1 parent ec9a643 commit 6e77c1f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/input/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const TextArea = ({
);

let val = fixControlledValue(value) as string;
// Max length value
const hasMaxLength = Number(maxLength) > 0;
val = hasMaxLength ? [...val].slice(0, maxLength).join('') : val;
// Only show text area wrapper when needed
Expand Down

0 comments on commit 6e77c1f

Please sign in to comment.