mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
fix: (BACKPORT) prevent keydown event when other option is selected in multiple choice element (#6942)
This commit is contained in:
committed by
GitHub
parent
1f0042b55c
commit
b8b5d320bc
@@ -263,7 +263,7 @@ export function MultipleChoiceMultiElement({
|
||||
<label
|
||||
tabIndex={isCurrent ? 0 : -1}
|
||||
className={labelClassName}
|
||||
onKeyDown={handleKeyDown(otherOption.id)}>
|
||||
onKeyDown={otherSelected ? undefined : handleKeyDown(otherOption.id)}>
|
||||
<span className="fb-flex fb-items-center fb-text-sm">
|
||||
<input
|
||||
type="checkbox"
|
||||
|
||||
Reference in New Issue
Block a user