fix: Mise à jour de la donnée en lancant l'évènement change
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2024-03-06 14:16:40 +01:00
parent 2ea897e563
commit 41135bb2c7
1 changed files with 4 additions and 2 deletions

View File

@ -47,9 +47,11 @@ function validatePopup() {
return true; return true;
} }
}); });
document.querySelector( const answer = document.querySelector(
"input[id=" + `question_${props.question.id}_answer_${answerIndex.id}` + "]" "input[id=" + `question_${props.question.id}_answer_${answerIndex.id}` + "]"
).checked = true; )
answer.checked = true;
answer.dispatchEvent(new Event("change"));
showHidePopup(); showHidePopup();
} }
const h = ref(); const h = ref();