Ensure the action dropdown resets to its default value when clearing filters in the history table.
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 */