Skip to content

Commit 137c70e

Browse files
committed
🔥 Remove eventListener beforeDestroy hook
1 parent 124049b commit 137c70e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Parallax.vue

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@
123123
}
124124
},
125125
126+
beforeDestroy () {
127+
window.removeEventListener('scroll', this.scrollHandler, false)
128+
},
129+
126130
computed: {
127131
directionValue () {
128132
return this.direction === 'down' ? +1 : -1

0 commit comments

Comments
 (0)