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
package/package.json
CHANGED
|
@@ -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
|
}
|