2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

fix: autoscroll should scroll to item when opening dropdown (#1513)

This commit is contained in:
Jeff Sagal
2021-10-06 10:57:36 -07:00
committed by GitHub
parent 9917747ab9
commit 766a2cb7b2
+5
View File
@@ -12,6 +12,11 @@ export default {
this.maybeAdjustScroll()
}
},
open(open) {
if (this.autoscroll && open) {
this.$nextTick(() => this.maybeAdjustScroll())
}
},
},
methods: {