mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-04-23 07:36:44 +02:00
sportlight only focus on searchbar when on desktop
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
This commit is contained in:
parent
0374af9613
commit
be78fab8ae
@ -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 = "";
|
||||||
|
if(!OS.mobile)
|
||||||
|
{
|
||||||
$(this.refs.search).focus();
|
$(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…
x
Reference in New Issue
Block a user