Skip to content

Commit 19eaeef

Browse files
committed
🐛 fix: account for textarea and other inputs in interactive list keydown filter
1 parent 7d367b4 commit 19eaeef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/InteractiveGroup/useInteractiveGroup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export function useInteractiveGroup<
316316

317317
// don't allow any keyboard actions if in a form input because even if arrow keys technically work the selection keys won't
318318
const tagName = (event.target as HTMLElement).tagName.toLowerCase();
319-
if (!disabled && tagName !== 'input') {
319+
if (!disabled && !['input', 'textarea', 'select', 'button', 'option', 'label'].includes(tagName)) {
320320
let action;
321321
if (items) {
322322
if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {

0 commit comments

Comments
 (0)