diff --git a/packages/surveys/src/components/MultipleChoiceMultiQuestion.tsx b/packages/surveys/src/components/MultipleChoiceMultiQuestion.tsx index 2668d34a4f..55300e29f9 100644 --- a/packages/surveys/src/components/MultipleChoiceMultiQuestion.tsx +++ b/packages/surveys/src/components/MultipleChoiceMultiQuestion.tsx @@ -97,7 +97,7 @@ export default function MultipleChoiceSingleQuestion({ }} className={cn( value === choice.label ? "z-10 border-slate-400 bg-slate-50" : "border-gray-200", - "relative flex cursor-pointer flex-col rounded-md border p-4 text-slate-800 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none focus:[&>input]:ring-0 focus:[&>input]:ring-offset-0" + "relative flex cursor-pointer flex-col rounded-md border p-4 text-slate-800 hover:bg-slate-50 focus:bg-slate-50 focus:outline-none " )}> + "relative flex cursor-pointer flex-col rounded-md border p-4 text-slate-800 focus-within:border-slate-400 focus-within:bg-slate-50 hover:bg-slate-50 focus:outline-none" + )} + onKeyDown={(e) => { + if (e.key == "Enter") { + setOtherSelected(!otherSelected); + onChange({ [question.id]: "" }); + } + }}> { setOtherValue(e.currentTarget.value);