fix: Shuffled choices issue (#2639)

This commit is contained in:
Dhruwang Jariwala
2024-05-17 14:48:32 +05:30
committed by GitHub
parent e539ac82f3
commit afdcac2465
4 changed files with 149 additions and 116 deletions
@@ -55,9 +55,10 @@ export const SelectQuestionChoice = ({
surveyLanguageCodes,
updateQuestion,
}: ChoiceProps) => {
const isDragDisabled = choice.id === "other";
const { attributes, listeners, setNodeRef, transform, transition } = useSortable({
id: choice.id,
disabled: choice.id === "other",
disabled: isDragDisabled,
});
const style = {