From 1b0b51e91ae2ded0733bb3d3f0e5b3d00f3d302d Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:05:42 +0200 Subject: [PATCH] fix behaviour of modal (#340) --- .../Components/Map/Subcomponents/Controls/LocateControl.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx b/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx index 063bf445..536ee3e5 100644 --- a/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx +++ b/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx @@ -260,7 +260,10 @@ export const LocateControl = (): JSX.Element => { setShowLocationModal(false)} + onClose={() => { + setShowLocationModal(false) + setHasDeclinedModal(true) + }} showCloseButton={true} closeOnClickOutside={false} className='tw:bottom-1/3 tw:mx-4 tw:sm:mx-auto'