Added a null and length check for pages before trying to modify their elements.
This commit is contained in:
		| @@ -2735,7 +2735,9 @@ class pagination extends IgniteTemplate { | ||||
|         } | ||||
|  | ||||
|         //Show the elements in the current page | ||||
|         this.pages[this.currentPage].forEach(item => item.style.removeProperty("display")); | ||||
|         if (this.pages && this.pages.length > 0) { | ||||
|             this.pages[this.currentPage].forEach(item => item.style.removeProperty("display")); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     construct(parent, sibling) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user