Skip to content

Commit

Permalink
Merge pull request #446 from ruxailab/Issue#445
Browse files Browse the repository at this point in the history
fix:(#445 Issue) answer select dont update
  • Loading branch information
jvJUCA authored Apr 18, 2024
2 parents 1e439c8 + d336f67 commit 52229d3
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/views/public/TestView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down Expand Up @@ -610,6 +591,7 @@ export default {
this.calculatedProgress = 0
}
}
this.$forceUpdate()
},
perHeuristicProgress(item) {
const value =
Expand Down

0 comments on commit 52229d3

Please sign in to comment.