diff --git a/src/components/Question.vue b/src/components/Question.vue index a02fc87..a7690d3 100644 --- a/src/components/Question.vue +++ b/src/components/Question.vue @@ -47,9 +47,11 @@ function validatePopup() { return true; } }); - document.querySelector( + const answer = document.querySelector( "input[id=" + `question_${props.question.id}_answer_${answerIndex.id}` + "]" - ).checked = true; + ) + answer.checked = true; + answer.dispatchEvent(new Event("change")); showHidePopup(); } const h = ref();