Skip to content

Commit bbfbe03

Browse files
committed
fix(scroll-nav): use setTimeout to fix vue2.6 nextTick
nextTick is faster than events
1 parent bf57e84 commit bbfbe03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/scroll-nav/scroll-nav.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
this.active = label
140140
// waiting touchend
141141
// so the inner scroll won't affect the touchend logic
142-
this.$nextTick(() => {
142+
setTimeout(() => {
143143
this.jumpTo(label)
144144
})
145145
},

0 commit comments

Comments
 (0)