From 41135bb2c7ca90af1d9cc403ee56005c5b9efda4 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 6 Mar 2024 14:16:40 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20Mise=20=C3=A0=20jour=20de=20la=20donn?= =?UTF-8?q?=C3=A9e=20en=20lancant=20l'=C3=A9v=C3=A8nement=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Question.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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();