Skip to content

Commit 4ae8d65

Browse files
fix: Reset this.af when deactivated
There is a bug - if component was deactivated next activation touch won't work.
1 parent 8e52745 commit 4ae8d65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/slider.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export default {
155155
deactivated() {
156156
this.timer && clearInterval(this.timer)
157157
this.af && this.af.destroy()
158+
this.af = null
158159
},
159160
160161
methods: {

0 commit comments

Comments
 (0)