diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts index 25ab9bef1..be16917bc 100644 --- a/app/src/mobile/index.ts +++ b/app/src/mobile/index.ts @@ -106,7 +106,7 @@ class App { callMobileAppShowKeyboard(); } } - if (!hasClosestByClassName(event.target as Element, "protyle-util")) { + if (document.contains(event.target) && !hasClosestByClassName(event.target as Element, "protyle-util")) { hideAllElements(["util"]); } });