diff --git a/app/javascript/vue/shared/select.vue b/app/javascript/vue/shared/select.vue index 9d11dd0b5..46802d9b9 100644 --- a/app/javascript/vue/shared/select.vue +++ b/app/javascript/vue/shared/select.vue @@ -62,7 +62,10 @@ }, mounted() { this.focusElement.onblur = this.blur; - document.addEventListener("scroll", this.updateOptionPosition); + document.addEventListener('scroll', this.updateOptionPosition); + }, + beforeDestroy() { + document.removeEventListener('scroll', this.updateOptionPosition); }, methods: { preventBlur() {