From 8e4270b409d3d387a915790d25dd041f6e0bb4a1 Mon Sep 17 00:00:00 2001 From: Aminejvm Date: Tue, 16 Feb 2021 08:20:27 +0100 Subject: [PATCH] fixed unity closing onclick bug --- components/core/UnityFrame.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/core/UnityFrame.js b/components/core/UnityFrame.js index ccd4cf84..4fdfc0c1 100644 --- a/components/core/UnityFrame.js +++ b/components/core/UnityFrame.js @@ -46,7 +46,11 @@ const UnityFrame = ({ url, unityGameLoader, unityGameConfig }) => { }; }, []); - return
; + return ( +
e.stopPropagation()}> +
+
+ ); }; export default UnityFrame;