fix: (BACKPORT) prevent keydown event when other option is selected in multiple choice element (#6942)

This commit is contained in:
Dhruwang Jariwala
2025-12-04 15:33:39 +05:30
committed by GitHub
parent 1f0042b55c
commit b8b5d320bc

View File

@@ -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"