gd-bs 6.9.5 → 6.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.9.5",
3
+ "version": "6.9.6",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -208,9 +208,6 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
208
208
  // Prevent the page from moving to the top
209
209
  ev.preventDefault();
210
210
 
211
- // Set the active index
212
- this._activePage = pageNumber;
213
-
214
211
  // See if we are showing the default
215
212
  if (this._showDefault) {
216
213
  // Clear the active item
@@ -224,6 +221,9 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
224
221
  span ? span.parentNode.removeChild(span) : null;
225
222
  }
226
223
 
224
+ // Set the active index
225
+ this._activePage = pageNumber;
226
+
227
227
  // Show the active item
228
228
  this._items[this._activePage - 1].classList.add("active");
229
229
 
@@ -236,6 +236,9 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
236
236
  // Configure the default buttons
237
237
  this.configureDefaultButtons();
238
238
  } else {
239
+ // Set the active index
240
+ this._activePage = pageNumber;
241
+
239
242
  // Render the active buttons
240
243
  this.renderActivePageNumbers(itemTemplate);
241
244
  }