Skip to content

Commit

Permalink
Merge branch '149-improve-content-discoverability-with-dynamic-empty-…
Browse files Browse the repository at this point in the history
…state-cta-s-2' into 'main'

fix: handle close overlay

See merge request decidim/decidim-module-geo!164
  • Loading branch information
Hadrien Froger committed Nov 4, 2024
2 parents 450b193 + 5b5c7c5 commit f049df1
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 f049df1

Please sign in to comment.