mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Never autofocus the search element by default
Automatically focusing the search element on the initial page load and on every auto-refresh of the menu is disruptive for both mobile devices and screen readers. fixes #7697
This commit is contained in:
parent
32c64f7e3d
commit
bc3a475e90
@ -5,7 +5,7 @@ use Icinga\Web\Widget\SearchDashboard;
|
|||||||
<? if (SearchDashboard::search('dummy')->getPane('search')->hasDashlets()): ?>
|
<? if (SearchDashboard::search('dummy')->getPane('search')->hasDashlets()): ?>
|
||||||
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
||||||
<input
|
<input
|
||||||
type="text" name="q" class="search autofocus" placeholder="<?= $this->translate('Search...') ?>"
|
type="text" name="q" class="search" placeholder="<?= $this->translate('Search...') ?>"
|
||||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user