docs/plans/2026-05-23-slate-v2-focus-history-policy-cleanup.md
Make the current focus/history policy beta-clean:
restore restores the last known selection for that root.useSlateHistory({ focusPolicy })useSlateRootChrome(root, { selection })docs/solutions/patterns/critical-patterns.md is absent in this checkout.docs/solutions/ui-bugs/2026-05-23-slate-react-mounted-root-editor-focus-for-root-chrome-history.mddocs/solutions/ui-bugs/2026-05-21-slate-v2-multi-root-chrome-clicks-must-activate-root-before-focus.mduseSlateHistory uses focusPolicy for DOM focus behavior.useSlateRootChrome uses selection for root caret placement.focusSlateEditable, which focuses the mounted
editable element before asking Slate DOM focus to sync selection.bun --filter slate-react test:vitest -- ./test/use-slate-root-chrome.test.tsx ./test/use-slate-history.test.tsxbun --filter slate-react typecheckbun typecheck:sitebun lint:fixbun build:nextPLAYWRIGHT_BASE_URL=http://localhost:3123 PLAYWRIGHT_RETRIES=0 bun run playwright playwright/integration/examples/multi-root-document.test.ts --project=chromium --workers=1