mirror of
https://github.com/netbox-community/netbox.git
synced 2026-02-04 06:16:23 -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 {
|
function focusGlobalSearch(): void {
|
||||||
const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!;
|
const searchInput = document.querySelector<HTMLInputElement>('header input[name="q"]')!;
|
||||||
searchInput.focus();
|
if (searchInput) {
|
||||||
|
searchInput.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleKeydown(event: KeyboardEvent): void {
|
function handleKeydown(event: KeyboardEvent): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user