2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-06 12:12:27 +03:00

fix: IE compatibility

This commit is contained in:
mengxiong10
2018-09-24 19:22:31 +08:00
parent f3e576d074
commit fefed17edd
+4 -2
View File
@@ -201,9 +201,11 @@ export default {
this.firstYear = Math.floor(this.calendarYear / 10) * 10
} else if (panel === 'TIME') {
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'))
})
}
})
}
},