mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-03 22:06:26 -06:00
no search at login page
This commit is contained in:
Vendored
+4
-4
File diff suppressed because one or more lines are too long
+4
-4
File diff suppressed because one or more lines are too long
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user