Skip to content

Commit

Permalink
fix(monitoraggio-caricamenti): fix CTA chips 20241021
Browse files Browse the repository at this point in the history
  • Loading branch information
lcucuzzella committed Oct 21, 2024
1 parent 802326c commit a3d9214
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Monitoring: React.FC<MonitoringI> = ({

//Aspette 1ms e clicca il bottone #applicaFiltri
setTimeout(() => {
handleSingleChipRemoveClick();
handleSearchAfterSingleChipRemoveClick();
}, 1);
};

Expand All @@ -98,9 +98,12 @@ const Monitoring: React.FC<MonitoringI> = ({
targetElement.click();
}
setChipsVisible(false);
setTimeout(() => {
handleSearchAfterSingleChipRemoveClick();
}, 1);
};

const handleSingleChipRemoveClick = () => {
const handleSearchAfterSingleChipRemoveClick = () => {
const targetElement = document.querySelector('#applicaFiltri') as HTMLButtonElement;
if (targetElement) {
targetElement.click();
Expand Down

0 comments on commit a3d9214

Please sign in to comment.