sportlight only focus on searchbar when on desktop

This commit is contained in:
DanyLE 2023-01-07 11:28:44 +01:00 committed by Dany LE
parent bf793ec204
commit db006345a9

View File

@ -382,7 +382,11 @@ namespace OS {
this.calibrate(); this.calibrate();
$(document).on("click", this._cb); $(document).on("click", this._cb);
(this.refs.search as HTMLInputElement).value = ""; (this.refs.search as HTMLInputElement).value = "";
$(this.refs.search).focus(); if(!OS.mobile)
{
$(this.refs.search).focus();
}
} else { } else {
$(this.refs.overlay).hide(); $(this.refs.overlay).hide();
$(document).off("click", this._cb); $(document).off("click", this._cb);