From 0d247e641660b1e399fc7360c17cb6237021fe07 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Fri, 26 Jun 2020 09:18:07 +0200 Subject: [PATCH] Fix layerswitcher not opening --- .../components/layer-switcher/layer-switcher.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/common-map/src/fm-map/components/layer-switcher/layer-switcher.component.ts b/projects/common-map/src/fm-map/components/layer-switcher/layer-switcher.component.ts index 484fc80..67ca0b0 100644 --- a/projects/common-map/src/fm-map/components/layer-switcher/layer-switcher.component.ts +++ b/projects/common-map/src/fm-map/components/layer-switcher/layer-switcher.component.ts @@ -36,10 +36,12 @@ export class LayerSwitcher implements OnInit,OnChanges{ handleClick(event:Event) { + event.stopPropagation(); this.store.dispatch(new mapActions.ShowLayerSwitcher(true)); } close(event:Event) { + event.stopPropagation(); this.store.dispatch(new mapActions.ShowLayerSwitcher(false)); }