wip
This commit is contained in:
@ -17,7 +17,7 @@ const answerWeight = ref(props.question.weight);
|
||||
|
||||
function selectAnswer(answer) {
|
||||
const answerIndex = props.question.answers.findIndex(
|
||||
(a) => a.id === answer.id
|
||||
(a) => a.id === answer.id,
|
||||
);
|
||||
slides.value.splide.go(answerIndex);
|
||||
}
|
||||
@ -48,8 +48,10 @@ function validatePopup() {
|
||||
}
|
||||
});
|
||||
const answer = document.querySelector(
|
||||
"input[id=" + `question_${props.question.id}_answer_${answerIndex.id}` + "]"
|
||||
)
|
||||
"input[id=" +
|
||||
`question_${props.question.id}_answer_${answerIndex.id}` +
|
||||
"]",
|
||||
);
|
||||
answer.checked = true;
|
||||
answer.dispatchEvent(new Event("change"));
|
||||
showHidePopup();
|
||||
|
Reference in New Issue
Block a user