Skip to content

Commit c80bd85

Browse files
committed
feat(input): add textarea to controlled inputevent
1 parent 8556111 commit c80bd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reconciler/host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function getPropertyKind(
3333
| { type: "inputevent"; key: string } {
3434
if (key.startsWith(EVENT_PREFIX)) {
3535
const eventName = key.slice(EVENT_PREFIX.length);
36-
if (type === "input") {
36+
if (eventName === "input" && (type === "input" || type === "textarea")) {
3737
return { type: "inputevent", key: eventName };
3838
} else {
3939
return { type: "event", key: eventName };

0 commit comments

Comments
 (0)