gd-bs 6.9.5 → 6.9.7
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/build/bs.js +1 -1
- package/build/components/pagination/index.js +4 -2
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/pagination/index.ts +6 -3
- package/src/styles/_custom.scss +1 -1
|
@@ -212,8 +212,6 @@ var _Pagination = /** @class */ (function (_super) {
|
|
|
212
212
|
item.addEventListener("click", function (ev) {
|
|
213
213
|
// Prevent the page from moving to the top
|
|
214
214
|
ev.preventDefault();
|
|
215
|
-
// Set the active index
|
|
216
|
-
_this._activePage = pageNumber_1;
|
|
217
215
|
// See if we are showing the default
|
|
218
216
|
if (_this._showDefault) {
|
|
219
217
|
// Clear the active item
|
|
@@ -225,6 +223,8 @@ var _Pagination = /** @class */ (function (_super) {
|
|
|
225
223
|
var span_1 = activeItem.querySelector("span");
|
|
226
224
|
span_1 ? span_1.parentNode.removeChild(span_1) : null;
|
|
227
225
|
}
|
|
226
|
+
// Set the active index
|
|
227
|
+
_this._activePage = pageNumber_1;
|
|
228
228
|
// Show the active item
|
|
229
229
|
_this._items[_this._activePage - 1].classList.add("active");
|
|
230
230
|
// Add the span
|
|
@@ -236,6 +236,8 @@ var _Pagination = /** @class */ (function (_super) {
|
|
|
236
236
|
_this.configureDefaultButtons();
|
|
237
237
|
}
|
|
238
238
|
else {
|
|
239
|
+
// Set the active index
|
|
240
|
+
_this._activePage = pageNumber_1;
|
|
239
241
|
// Render the active buttons
|
|
240
242
|
_this.renderActivePageNumbers(itemTemplate);
|
|
241
243
|
}
|