mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-16 01:38:21 +01: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();
|
||||
$(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