docs/plans/2026-05-23-slate-v2-multi-root-body-click-selection.md
Fix the multi-root document native pointer path where clicking the body editor after typing in the header leaves DOM focus/selection in the header.
http://localhost:3100/examples/multi-root-document:
header click + type, then body text click leaves document.activeElement.id
as multi-root-header.use-slate-root-chrome tests pass..tmp/slate-v2/playwright/integration/examples/multi-root-document.test.ts
for header native typing followed by a body text-line click..tmp/slate-v2/packages/slate-react/src/hooks/use-slate-root-chrome.ts..tmp/slate-v2/packages/slate-react/test/use-slate-root-chrome.test.tsx..tmp/slate-v2/.changeset/native-root-line-clicks.md.PLAYWRIGHT_BASE_URL=http://localhost:3100 bunx playwright test ./playwright/integration/examples/multi-root-document.test.ts --project=chromium --grep "moves the native caret into body text after typing in header" --workers=1 --retries=0
failed with body caret offset 41 instead of 43.bun --filter slate-react test:vitest -- test/use-slate-root-chrome.test.tsx
passed.PLAYWRIGHT_BASE_URL=http://localhost:3100 bunx playwright test ./playwright/integration/examples/multi-root-document.test.ts --project=chromium --workers=1 --retries=0
passed, 9 passed.bun --filter slate-react typecheck passed.bun lint:fix passed with no fixes on the final run.node tooling/scripts/completion-check.mjs passed.