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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user