diff --git a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue index 49dcf6fa92a..c0ccb6293d3 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/index.vue @@ -300,6 +300,9 @@ } this.quizInitialized = true; }, + destroy() { + window.removeEventListener('beforeunload', this.onBeforeUnload) + }, methods: { beforeUnload(e) { if (this.quizHasChanged) {