Skip to content

Commit

Permalink
fix: handle close overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadrien Froger committed Nov 4, 2024
1 parent 450b193 commit 5b5c7c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/packs/src/decidim/geo/ui/FilterControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const FilterControl = L.Control.extend({
},
container: null,
button: null,
overlay: null,
modalOverlay: null,
modalHelpText: null,
onAdd(map) {
Expand Down
4 changes: 4 additions & 0 deletions app/packs/src/decidim/geo/ui/FilterModalOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class FilterModalOverlay {
});
}
toggleOpen() {
dropdownFilterStore.setState(({ selectedFilters }) => ({
nextFilters: { ...selectedFilters },
}));

dropdownFilterStore.getState().toggleOpen();
}

Expand Down

0 comments on commit 5b5c7c5

Please sign in to comment.