gd-bs 6.9.3 → 6.9.5

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.3",
3
+ "version": "6.9.5",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -118,14 +118,14 @@ class _Pagination extends Base<IPaginationProps> implements IPagination {
118
118
  // Do nothing if it's disabled
119
119
  if (item.classList.contains("disabled")) { return; }
120
120
 
121
- // Update the active page
122
- isPrevious ? this._activePage-- : this._activePage++;
123
-
124
121
  // See if we are rendering the default
125
122
  if (this._showDefault) {
126
- // Click the item
127
- this._items[this._activePage]?.click();
123
+ // Click the previous/next item
124
+ this._items[isPrevious ? this._activePage - 2 : this._activePage]?.click();
128
125
  } else {
126
+ // Update the active page
127
+ isPrevious ? this._activePage-- : this._activePage++;
128
+
129
129
  // Render the active buttons
130
130
  this.renderActivePageNumbers(itemTemplate);
131
131