mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 09:48: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();
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user