docs/plans/2026-05-24-slate-issue-17-editable-voids-undo-focus.md
Resolve udecode/slate#17: undoing after typing into the native Name input of a newly inserted editable void can crash with Could not set focus, editor seems stuck with pending operations.
http://localhost:3100/examples/editable-voidse62c2046, Chrome on macOSvideo/mp4; transcript required before implementation..tmp/slate-v2 editable-voids source, tests, DOM focus handling, and native input undo/history path..tmp/slate-v2.[00:00] editable-voids example is open.[00:01]-[00:05] user focuses the Name input and types abc.[00:06] user performs undo.[00:07]-[00:10] page shows runtime error: Could not set focus, editor seems stuck with pending operations, stack includes Object.focus..tmp/slate-v2 does not reproduce the crash. The existing undo from a new editable void input removes the inserted void block row passes.already-accounted with strengthened browser proof.PLAYWRIGHT_BASE_URL=http://localhost:3100 PLAYWRIGHT_RETRIES=0 PLAYWRIGHT_WORKERS=1 bun playwright playwright/integration/examples/editable-voids.test.ts --project=chromium --grep "undo from a new editable void input removes the inserted void block": passed.PLAYWRIGHT_BASE_URL=http://localhost:3100 PLAYWRIGHT_RETRIES=0 PLAYWRIGHT_WORKERS=1 bun playwright playwright/integration/examples/editable-voids.test.ts --project=chromium: 15 passed.bun check: passed.bun lint:fix: passed, no fixes applied.