gd-bs 6.9.4 → 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.
|
@@ -125,14 +125,14 @@ var _Pagination = /** @class */ (function (_super) {
|
|
|
125
125
|
if (item.classList.contains("disabled")) {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
// Update the active page
|
|
129
|
-
isPrevious_1 ? _this._activePage-- : _this._activePage++;
|
|
130
128
|
// See if we are rendering the default
|
|
131
129
|
if (_this._showDefault) {
|
|
132
|
-
// Click the item
|
|
133
|
-
(_a = _this._items[_this._activePage -
|
|
130
|
+
// Click the previous/next item
|
|
131
|
+
(_a = _this._items[isPrevious_1 ? _this._activePage - 2 : _this._activePage]) === null || _a === void 0 ? void 0 : _a.click();
|
|
134
132
|
}
|
|
135
133
|
else {
|
|
134
|
+
// Update the active page
|
|
135
|
+
isPrevious_1 ? _this._activePage-- : _this._activePage++;
|
|
136
136
|
// Render the active buttons
|
|
137
137
|
_this.renderActivePageNumbers(itemTemplate);
|
|
138
138
|
// Call the click event
|