Skip to content

Commit

Permalink
fix(VSelect): bind scroll listener to menu content
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD authored and epicpants64 committed Feb 7, 2020
1 parent c1a0d0c commit 0f0c05e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/vuetify/src/components/VSelect/VSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default baseMixins.extend<options>().extend({
data () {
return {
cachedItems: this.cacheItems ? this.items : [],
isBooted: false,
menuIsBooted: false,
isMenuActive: false,
lastItem: 20,
// As long as a value is defined, show it
Expand Down Expand Up @@ -247,19 +247,19 @@ export default baseMixins.extend<options>().extend({
this.initialValue = val
this.setSelectedItems()
},
isBooted () {
this.$nextTick(() => {
menuIsBooted () {
window.setTimeout(() => {
if (this.getContent() && this.getContent().addEventListener) {
this.getContent().addEventListener('scroll', this.onScroll, false)
}
})
},
isMenuActive (val) {
this.$nextTick(() => this.onMenuActiveChange(val))
window.setTimeout(() => this.onMenuActiveChange(val))

if (!val) return

this.isBooted = true
this.menuIsBooted = true
},
items: {
immediate: true,
Expand Down

0 comments on commit 0f0c05e

Please sign in to comment.