aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/libft.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/libft.js')
-rw-r--r--interface/js/app/libft.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/interface/js/app/libft.js b/interface/js/app/libft.js
index 7106516a2..ca2a1ebef 100644
--- a/interface/js/app/libft.js
+++ b/interface/js/app/libft.js
@@ -318,6 +318,13 @@ define(["jquery", "app/common", "footable"],
self.removeFilter("action");
}
self.filter();
+ },
+ draw: function () {
+ // Ensure the dropdown reflects the default value when filters are cleared.
+ this._super();
+ const actionFilter = this.find("action");
+ const isActionFilterApplied = actionFilter instanceof FooTable.Filter;
+ if (this.$action && !isActionFilterApplied) this.$action.val(this.def);
}
});
/* eslint-enable consistent-this, no-underscore-dangle */