mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-22 19:40:38 +03:00
fix: IE compatibility
This commit is contained in:
+4
-2
@@ -201,9 +201,11 @@ export default {
|
|||||||
this.firstYear = Math.floor(this.calendarYear / 10) * 10
|
this.firstYear = Math.floor(this.calendarYear / 10) * 10
|
||||||
} else if (panel === 'TIME') {
|
} else if (panel === 'TIME') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
[...this.$el.querySelectorAll('.mx-panel-time .mx-time-list')].forEach(el => {
|
const list = this.$el.querySelectorAll('.mx-panel-time .mx-time-list')
|
||||||
|
for (let i = 0, len = list.length; i < len; i++) {
|
||||||
|
const el = list[i]
|
||||||
scrollIntoView(el, el.querySelector('.actived'))
|
scrollIntoView(el, el.querySelector('.actived'))
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user