docs/plans/2026-04-27-slate-v2-search-highlighting-input-focus.md
Done.
Fix /examples/search-highlighting so typing into the search input decorates
matches without moving focus away from the search input.
/Users/zbeyens/git/slate-v2./Users/zbeyens/git/plate-2./examples/search-highlighting.document.activeElement on the input and update highlights.projectionStore whenever search changed.dev-browser with real typing into the search input.dev-browser, scoped typecheck/lint.PLAYWRIGHT_BASE_URL=http://localhost:3100 bunx playwright test ./playwright/integration/examples/search-highlighting.test.ts --project=chromium --grep "keeps focus" --workers=1 --retries=0
failed before the fix because the search input was no longer focused./Users/zbeyens/git/slate-v2/site/examples/ts/search-highlighting.tsx
by keeping projectionStore stable, reading the search term from a ref, and
calling projectionStore.refresh({ reason: 'external' }) on input changes./Users/zbeyens/git/slate-v2/playwright/integration/examples/search-highlighting.test.ts
coverage for "editor focused first, then type in search input".PLAYWRIGHT_BASE_URL=http://localhost:3100 bunx playwright test ./playwright/integration/examples/search-highlighting.test.ts --project=chromium --workers=1 --retries=0bun typecheck:sitebun typecheck:rootbun lint:fixdev-browser --connect http://127.0.0.1:9222 on
/examples/search-highlighting: active element stayed the search input,
value was text, highlight count was 2.