fix: don't allow spaces as "other" values in select questions (#5224)

This commit is contained in:
Piyush Gupta
2025-04-04 13:31:26 +05:30
committed by GitHub
parent 3fd5515db1
commit f0c7b881d3
2 changed files with 2 additions and 0 deletions
@@ -279,6 +279,7 @@ export function MultipleChoiceMultiQuestion({
}
required={question.required}
aria-labelledby={`${otherOption.id}-label`}
pattern=".*\S+.*"
/>
) : null}
</label>
@@ -237,6 +237,7 @@ export function MultipleChoiceSingleQuestion({
}
required={question.required}
aria-labelledby={`${otherOption.id}-label`}
pattern=".*\S+.*"
/>
) : null}
</label>