svelte-common 5.2.0 → 5.2.1
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 +1 -1
- package/src/pagination.mjs +3 -0
package/package.json
CHANGED
package/src/pagination.mjs
CHANGED
|
@@ -133,6 +133,7 @@ export class Pagination {
|
|
|
133
133
|
a.innerText = innerText;
|
|
134
134
|
if (targetPage === this.page) {
|
|
135
135
|
a.disabled = true;
|
|
136
|
+
a.classList.add("active");
|
|
136
137
|
a.setAttribute("aria-current", "page");
|
|
137
138
|
} else {
|
|
138
139
|
a.onclick = () => (this.page = targetPage);
|
|
@@ -167,4 +168,6 @@ export class Pagination {
|
|
|
167
168
|
|
|
168
169
|
export function pageNavigation(elem, pg) {
|
|
169
170
|
elem.replaceChildren(pg.pageNavigationElement);
|
|
171
|
+
|
|
172
|
+
// TODO destroy
|
|
170
173
|
}
|