mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 10:19:15 +03:00
ie 11 array fix
This commit is contained in:
parent
557f7967b3
commit
dea2740b3c
@ -9,7 +9,7 @@ export class PaginationComponent extends Component {
|
||||
// вставляем кнопки со страницами и назначаем ивент
|
||||
initialize(pages, insertTo, request) {
|
||||
this.insertButtons(pages);
|
||||
this.$pages = this.$el.querySelectorAll('li');
|
||||
this.$pages = Array.from(this.$el.querySelectorAll('li'));
|
||||
this.$el.onclick = (e) => this.buttonHandler(e, insertTo, request);
|
||||
this.moveTo(1, insertTo, request); // показываем первую страницу
|
||||
this.$el.querySelector('li').nextElementSibling.classList.add('active');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user