Skip to content

Commit 7e7b95f

Browse files
authored
fix(TextArea): word mode onChange
Should still call onChange even when tart.value has no text. still skips secondary `if` block when there is no text.
1 parent 6d957f1 commit 7e7b95f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react/src/components/TextArea/TextArea.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,7 @@ const TextArea = frFn((props, forwardRef) => {
320320
setTimeout(() => {
321321
setTextCount(0);
322322
}, 0);
323-
324-
return;
325-
}
326-
327-
if (
323+
} else if (
328324
enableCounter &&
329325
typeof maxCount !== 'undefined' &&
330326
textareaRef.current !== null

0 commit comments

Comments
 (0)