Remove universal search hooks

- Global shortcuts don't work
- Focus input on open can be achieved just with 'autofocus' attribute
- Maintaining focus when input is active can be achieved just by adding
  an ID to the input
This commit is contained in:
Claudio Ortolina
2025-07-06 09:13:11 +01:00
parent 7056334a06
commit b86e8abd52
4 changed files with 3 additions and 64 deletions
-3
View File
@@ -23,14 +23,11 @@ import { LiveSocket } from "phoenix_live_view";
import topbar from "../vendor/topbar";
import { Hooks as FluxonHooks, DOM as FluxonDOM } from "fluxon";
import BarcodeScannerHook from "./barcode-scanner";
import { SearchHook, SearchInputHook } from "./search";
import confetti from "canvas-confetti";
import { createLiveToastHook } from "live_toast";
let Hooks = FluxonHooks;
Hooks.BarcodeScanner = BarcodeScannerHook;
Hooks.Search = SearchHook;
Hooks.SearchInput = SearchInputHook;
Hooks.LiveToast = createLiveToastHook();
let csrfToken = document