From 5b5c7c5117d1350c78b993a105e66883c709eb95 Mon Sep 17 00:00:00 2001 From: Hadrien Froger Date: Mon, 4 Nov 2024 10:38:29 +0000 Subject: [PATCH] fix: handle close overlay --- app/packs/src/decidim/geo/ui/FilterControl.js | 1 - app/packs/src/decidim/geo/ui/FilterModalOverlay.js | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/packs/src/decidim/geo/ui/FilterControl.js b/app/packs/src/decidim/geo/ui/FilterControl.js index ae1587d..30dfd46 100644 --- a/app/packs/src/decidim/geo/ui/FilterControl.js +++ b/app/packs/src/decidim/geo/ui/FilterControl.js @@ -9,7 +9,6 @@ const FilterControl = L.Control.extend({ }, container: null, button: null, - overlay: null, modalOverlay: null, modalHelpText: null, onAdd(map) { diff --git a/app/packs/src/decidim/geo/ui/FilterModalOverlay.js b/app/packs/src/decidim/geo/ui/FilterModalOverlay.js index 91ca62e..c4d1e95 100644 --- a/app/packs/src/decidim/geo/ui/FilterModalOverlay.js +++ b/app/packs/src/decidim/geo/ui/FilterModalOverlay.js @@ -15,6 +15,10 @@ class FilterModalOverlay { }); } toggleOpen() { + dropdownFilterStore.setState(({ selectedFilters }) => ({ + nextFilters: { ...selectedFilters }, + })); + dropdownFilterStore.getState().toggleOpen(); }