Skip to content

Commit

Permalink
IBX-9361: The 'x' button in search for Clients list doesn't work (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored Mar 4, 2025
1 parent 574d20f commit 23dd150
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/bundle/Resources/public/js/scripts/filters.action.btns.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,24 @@
};
const handleFormClear = () => {
clearForm();
clearBtn.disabled = true;
applyBtn.disabled = !checkFieldsValuesChanged();
applyBtn.click();

if (clearBtn) {
clearBtn.disabled = true;
}

if (applyBtn) {
applyBtn.disabled = !checkFieldsValuesChanged();
applyBtn.click();
}
};
const handleInputChange = () => {
clearBtn.disabled = checkAreFiltersCleared();
applyBtn.disabled = !checkFieldsValuesChanged();
if (clearBtn) {
clearBtn.disabled = checkAreFiltersCleared();
}

if (applyBtn) {
applyBtn.disabled = !checkFieldsValuesChanged();
}
};

dropdownNodes.forEach((dropdownNode) => {
Expand Down

0 comments on commit 23dd150

Please sign in to comment.