Skip to content

Commit e32e6d5

Browse files
committed
fix: query selector for textarea
1 parent ed10deb commit e32e6d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ui/input-group.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ function InputGroupAddon({
8989
if ((e.target as HTMLElement).closest('button')) {
9090
return;
9191
}
92-
e.currentTarget.parentElement?.querySelector('input')?.focus();
92+
e.currentTarget.parentElement
93+
?.querySelector<
94+
HTMLInputElement | HTMLTextAreaElement
95+
>('input, textarea')
96+
?.focus();
9397
}}
9498
{...props}
9599
/>

0 commit comments

Comments
 (0)