Skip to content
TypeScript

[codex] fix: restore pending input keyboard activation (#3501)

Wout Stiens8b993bc9ff79
diff --git a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
index bf869d25c66..d826eca0063 100644
--- a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
+++ b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx
@@ -208,19 +208,17 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
</>
);
return (
- <div
+ <button
key={`${activeQuestion.id}:${option.label}`}
- role="button"
- tabIndex={isResponding ? -1 : 0}
- aria-disabled={isResponding}
+ type="button"
+ disabled={isResponding}
onClick={() => {
- if (isResponding) return;
handleOptionSelection(activeQuestion.id, option.label);
}}
className={className}
>
{content}
- </div>
+ </button>
);
})}
</div>