diff --git a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx index c210e0e5f9..6ddd55f076 100644 --- a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx +++ b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx @@ -15,7 +15,8 @@ const ProvisionsPopup = () => { const gtmEventClickReadMore = () => gtmEvent("Provisions popup click"); const gtmEventClickClose = () => gtmEvent("Provisions popup close"); - const onClose = () => { + const onClose = (event: React.MouseEvent) => { + event.stopPropagation(); gtmEventClickClose(); toggleModal(); }; @@ -33,7 +34,7 @@ const ProvisionsPopup = () => { right="0" left="0" backgroundColor="rgba(0,0,0,0.7)" - onClick={onClose} + onClick={(e) => onClose(e)} > { width="28px" height="28px" style={{ backgroundColor: "transparent" }} - onClick={(e) => { - e.stopPropagation(); - onClose(); - }} + onClick={(e) => onClose(e)} >