From dea2740b3c8e050e00448f6e9ddd62fdd88b1c6e Mon Sep 17 00:00:00 2001 From: Sergey Yarkov Date: Wed, 25 Dec 2019 16:00:02 +0300 Subject: [PATCH] ie 11 array fix --- src/admin/components/pagination.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin/components/pagination.component.js b/src/admin/components/pagination.component.js index ce9b0c5..bb3fceb 100644 --- a/src/admin/components/pagination.component.js +++ b/src/admin/components/pagination.component.js @@ -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');