From 8a99a84d8b74acecce03e3ef4ddd99921267d68e Mon Sep 17 00:00:00 2001 From: nishantka Date: Mon, 10 Jun 2024 13:10:13 +0530 Subject: [PATCH] MWPW-151588: fix geo modal is not closed on ESC --- libs/features/georoutingv2/georoutingv2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/features/georoutingv2/georoutingv2.js b/libs/features/georoutingv2/georoutingv2.js index 5adadb6da2..742db176fe 100644 --- a/libs/features/georoutingv2/georoutingv2.js +++ b/libs/features/georoutingv2/georoutingv2.js @@ -257,7 +257,7 @@ async function showModal(details) { const promises = [ tabs ? loadBlock(tabs) : null, tabs ? loadStyle(`${miloLibs || codeRoot}/blocks/section-metadata/section-metadata.css`) : null, - loadStyle(`${miloLibs || codeRoot}/features/georoutingv2/georoutingv2.css`), + new Promise((resolve) => { loadStyle(`${miloLibs || codeRoot}/features/georoutingv2/georoutingv2.css`, resolve); }), ]; await Promise.all(promises); // eslint-disable-next-line import/no-cycle