Make the page reset when changing filters (closes #32)

This commit is contained in:
Oliver 2026-02-08 23:57:34 -07:00
parent 92a5282e36
commit b1995a1dce
5 changed files with 12 additions and 4 deletions

View file

@ -272,6 +272,7 @@ export class ArtBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
event.stopPropagation();
const data = (new FormDataExtended(event.currentTarget)).object;
this.filters = data;
this.#page = 1;
this.render({ parts: [`images`] });
};