Skip to content

Commit

Permalink
added changes to clear string filter values
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat-webkul committed Mar 26, 2024
1 parent 319d500 commit 140b77e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/Webkul/UI/publishable/assets/js/ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/Webkul/UI/publishable/assets/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/ui.js": "/js/ui.js?id=373b3a43192a09d14f757b62ad82b170",
"/js/ui.js": "/js/ui.js?id=45bba5e30077fe7a99fb7b0c75e1c819",
"/css/ui.css": "/css/ui.css?id=84b20446fe4083db9e4501ee2ec3e50f",
"/images/add-icon.svg": "/images/add-icon.svg?id=9135b4e0e1c239c36981c849a44a80e1",
"/images/alert-danger-icon.svg": "/images/alert-danger-icon.svg?id=d77f6a8646ed23b5c3b7721e9e236299",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,22 @@ export default {
},
removeFilter: function({ type, key, index }) {
let values = (this.columns || this.tableData.columns)[key].values;
values = "";
let values = "";
if (type === 'date_range') this.resetSpecificDateRangePicker(key);
if (type === 'date_range') {
this.resetSpecificDateRangePicker(key);
} else if (type === 'string') {
let element = document.getElementById(`enter-new-${index}`);
if (element !== null) {
element.value = '';
this.addField[index] = false;
}
}
this.updateFilterValues({
key,
key: index,
values
});
Expand Down

0 comments on commit 140b77e

Please sign in to comment.