mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
multi-choice hit enter submit
This commit is contained in:
@@ -75,7 +75,10 @@ export default function MultipleChoiceSingleQuestion({
|
||||
key={choice.id}
|
||||
tabIndex={idx + 1}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key == "Enter") onChange({ [question.id]: choice.label });
|
||||
if (e.key == "Enter") {
|
||||
onChange({ [question.id]: choice.label });
|
||||
onSubmit({ [question.id]: choice.label });
|
||||
}
|
||||
}}
|
||||
className={cn(
|
||||
value === choice.label ? "z-10 border-slate-400 bg-slate-50" : "border-gray-200",
|
||||
|
||||
Reference in New Issue
Block a user