You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In multiple Slate examples, replacing the whole editor selection with a single character and then undoing does not restore the original content locally. The live reference restores the original document.
Recording
Screenshots attached below:
Local actual behavior:
Live reference expected behavior:
Video attached below:
CleanShot.2026-05-07.at.18.16.55.mp4
Sandbox
No standalone sandbox. Reproduced in the Slate examples site.
Local reproduction URL:
http://localhost:3100/examples/mentions
Reference URL:
https://www.slatejs.org/examples/mentions
Steps
To reproduce the behavior:
Go to http://localhost:3100/examples/mentions.
Click inside the Mentions editor.
Press Cmd+A.
Type Z.
Press Cmd+Z.
Repeat the same steps on https://www.slatejs.org/examples/mentions.
Expectation
After pressing Cmd+Z, the editor should restore the original Mentions document content, matching the live reference.
Actual behavior
On localhost, the editor remains as Z after pressing Cmd+Z. The original Mentions document content is not restored.
Environment
Local URL: http://localhost:3100/examples/mentions
Local app setup: Slate examples site served locally with bun serve
Additional scope:
The same behavior also reproduces in examples/inlines and examples/tables.
This is now tracked as a cross-example issue. I will retest it as an existing issue after future pulls instead of opening per-example duplicates.
Steps checked:
Open http://localhost:3100/examples/inlines.
Click inside the editor.
Press Cmd+A.
Type Z.
Press Cmd+Z.
Compare with https://www.slatejs.org/examples/inlines.
On localhost, the editor still shows only Z after Cmd+Z. The live reference restores the original Inlines document.
Impact
This breaks undo behavior after replacing a full editor selection across multiple Slate examples
. A normal select-all, replace, undo workflow can leave the document content lost locally instead of restoring the previous content.
Description
In multiple Slate examples, replacing the whole editor selection with a single character and then undoing does not restore the original content locally. The live reference restores the original document.
Recording
Screenshots attached below:
Local actual behavior:
Live reference expected behavior:
Video attached below:
CleanShot.2026-05-07.at.18.16.55.mp4
Sandbox
No standalone sandbox. Reproduced in the Slate examples site.
Local reproduction URL:
http://localhost:3100/examples/mentionsReference URL:
https://www.slatejs.org/examples/mentionsSteps
To reproduce the behavior:
http://localhost:3100/examples/mentions.Cmd+A.Z.Cmd+Z.https://www.slatejs.org/examples/mentions.Expectation
After pressing
Cmd+Z, the editor should restore the original Mentions document content, matching the live reference.Actual behavior
On localhost, the editor remains as
Zafter pressingCmd+Z. The original Mentions document content is not restored.Environment
http://localhost:3100/examples/mentionshttps://www.slatejs.org/examples/mentionsv2,ce2bd6c6bun serveAdditional scope:
The same behavior also reproduces in
examples/inlinesandexamples/tables.This is now tracked as a cross-example issue. I will retest it as an existing issue after future pulls instead of opening per-example duplicates.
Steps checked:
http://localhost:3100/examples/inlines.Cmd+A.Z.Cmd+Z.https://www.slatejs.org/examples/inlines.On localhost, the editor still shows only
ZafterCmd+Z. The live reference restores the original Inlines document.Impact
This breaks undo behavior after replacing a full editor selection across multiple Slate examples
. A normal select-all, replace, undo workflow can leave the document content lost locally instead of restoring the previous content.