diff --git a/components/input/InputTextarea.tsx b/components/input/InputTextarea.tsx index c9d4b5977..6ccce7f11 100644 --- a/components/input/InputTextarea.tsx +++ b/components/input/InputTextarea.tsx @@ -86,7 +86,7 @@ export default class InputTextarea extends PureComponent { 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);