From d336f675883a51dd4b2e7647c4e47ded515e0854 Mon Sep 17 00:00:00 2001 From: jvJUCA Date: Thu, 18 Apr 2024 14:28:00 -0300 Subject: [PATCH] fix:(#445 Issue) answer select dont update --- src/views/public/TestView.vue | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/views/public/TestView.vue b/src/views/public/TestView.vue index a5d70daf..8e75e40a 100644 --- a/src/views/public/TestView.vue +++ b/src/views/public/TestView.vue @@ -520,25 +520,6 @@ export default { } }, }, - mounted() { - const mediaQuery = window.matchMedia('(max-width: 600px)') - - // Function to toggle the visibility of the list of questions - const hideSidebar = () => { - this.mini = true - } - - // Add an event listener for the media query - mediaQuery.addEventListener('change', hideSidebar) - - // Call the function initially to set the correct visibility - hideSidebar() - - // Clean up the event listener when the component is destroyed - this.$once('hook:beforeDestroy', () => { - mediaQuery.removeEventListener('change', hideSidebar) - }) - }, async created() { await this.$store.dispatch('getTest', { id: this.id }) @@ -610,6 +591,7 @@ export default { this.calculatedProgress = 0 } } + this.$forceUpdate() }, perHeuristicProgress(item) { const value =