This commit is contained in:
2023-04-25 14:40:03 +08:00
parent 08e58b3abc
commit d7728ebfd6
4 changed files with 29 additions and 5 deletions

View File

@ -1116,7 +1116,7 @@ class Grid {
reset.innerText = this.langs.reset;
reset.addEventListener('click', () => {
this.#set(col.key, 'filter', null);
// TODO: change __filtered
this.#colAttrs.__filtered = this.columns.some(c => this.#get(c.key, 'filter') != null)
this.#refreshSource();
if (typeof col.onFiltered === 'function') {
col.onFiltered.call(this, col);