docs/plans/2026-05-23-slate-v2-multi-root-footer-first-click-focus.md
Fix the multi-root document path where header text click, body text click, then footer text click leaves focus and native selection in the body until a second footer click.
Also fix the follow-up path where a stale body caret is restored after clicking body editor padding from another root instead of moving to the clicked body end.
http://localhost:3100/examples/multi-root-document:
after scrolling the footer into view and clicking its text, active element and
selection stayed in #multi-root-main..tmp/slate-v2/playwright/integration/examples/multi-root-document.test.ts
first failed on expect(footer).toBeFocused().28 from an
earlier body click instead of moving to the last body paragraph end.Package code under slate-react changes, so keep the existing branch changeset
current.