Skip to content

Commit

Permalink
fix: IE compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Sep 24, 2018
1 parent f3e576d commit fefed17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
})
}
})
}
},
Expand Down

0 comments on commit fefed17

Please sign in to comment.