fix(search): register the headerSearch Alpine component (dropdown regression)

The dropdown never opened on typing: the search-dropdown migration left
./search un-imported after dropping the initializeSearch call from
header.ts, so the bundler tree-shook the module away and the
x-data="headerSearch" scope never registered — every handler binding
(input/focus/keys) silently died. This is a client-wiring defect that
HTTP-level integration tests structurally cannot see; a Playwright e2e
spec (e2e/search-scrubber.spec.ts) now drives the real bundle: sub-2-char
input stays closed, 2+ chars opens the swapped templ dropdown.
This commit is contained in:
John O'Keefe committed 2026-10-27 19:04:59 -04:00
1 parent e5d4744977
commit 14285ff314
1 file changed
+5
+5
View File
@@ -1,4 +1,9 @@
import { Alpine } from "./alpine"; import { Alpine } from "./alpine";
// Side-effect import: registers the headerSearch Alpine component that
// owns the header dropdown's client-local state (open/close/keyboard).
// Without it the bundler tree-shakes the module away and the search
// input silently stops opening the dropdown.
import "./search";
import { import {
initializeTheme, initializeTheme,
changeTheme, changeTheme,