mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
sportlight only focus on searchbar when on desktop
This commit is contained in:
parent
bf793ec204
commit
db006345a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user