Skip to content

Commit 24519da

Browse files
authored
fix(textarea): update value correctly (#95)
close #94
1 parent a7a4962 commit 24519da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Textarea.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ReactTextareaAutocomplete extends React.Component<
8585
}
8686

8787
static getDerivedStateFromProps({ value }: TextareaProps) {
88-
if (!value) return null;
88+
if (value === null || value === undefined) return null;
8989

9090
return {
9191
value,

0 commit comments

Comments
 (0)