mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-09 01:49:35 -06:00
no search at login page
This commit is contained in:
parent
499ebb8ab4
commit
f2097cce33
BIN
netbox/project-static/dist/netbox.js
vendored
BIN
netbox/project-static/dist/netbox.js
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -4,7 +4,9 @@ const HOTKEYS: Record<string, () => void> = {
|
||||
|
||||
function focusGlobalSearch(): void {
|
||||
const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!;
|
||||
searchInput.focus();
|
||||
if (searchInput) {
|
||||
searchInput.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function handleKeydown(event: KeyboardEvent): void {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user