From be78fab8aeba60125b5411c2231c2967a40900b1 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sat, 7 Jan 2023 11:28:44 +0100 Subject: [PATCH] sportlight only focus on searchbar when on desktop --- src/core/tags/SystemPanelTag.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/tags/SystemPanelTag.ts b/src/core/tags/SystemPanelTag.ts index 52d9be4..64520fb 100644 --- a/src/core/tags/SystemPanelTag.ts +++ b/src/core/tags/SystemPanelTag.ts @@ -382,7 +382,11 @@ namespace OS { this.calibrate(); $(document).on("click", this._cb); (this.refs.search as HTMLInputElement).value = ""; - $(this.refs.search).focus(); + if(!OS.mobile) + { + $(this.refs.search).focus(); + } + } else { $(this.refs.overlay).hide(); $(document).off("click", this._cb);