Skip to content

Commit

Permalink
fix: type textarea of input count has error
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Jul 12, 2018
1 parent 6f6ccd6 commit cc6924b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/input/InputTextarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class InputTextarea extends PureComponent<InputTextareaProps, any
onInputChange = (e) => {
const { onChange } = this.props;
const value = e.target.value;
const length = countSymbols(value) + (value ? value.length : 0);
const length = countSymbols(value);
this.setState({ length });
if (typeof onChange === 'function') {
onChange(value);
Expand Down

0 comments on commit cc6924b

Please sign in to comment.