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 examples/editable-voids, undo behaves differently after adding a new editable void and typing into the native Name input inside that newly inserted block.
The live reference removes the newly inserted editable void block when Cmd+Z is pressed. The local v2 build only clears the input value and leaves the newly inserted editable void block in the document.
This looks like an undo/history boundary issue between inserting the editable void Slate node and editing the native input rendered inside it.
Recording
Screenshots attached below:
Live reference expected behavior:
Local actual behavior:
Video attached below:
issue-007-editable-voids-input-undo-history.mp4
Sandbox
No standalone sandbox. Reproduced in the Slate Editable Voids example.
Local reproduction URL:
http://localhost:3100/examples/editable-voids
Live reference URL:
https://www.slatejs.org/examples/editable-voids
Steps
To reproduce the behavior:
Open examples/editable-voids.
Click the + button to insert a new editable void block.
In the Name input of the newly inserted editable void block, type abc.
Press Cmd+Z.
Compare the result with the live reference site.
Expectation
The local behavior should match the live reference behavior.
Live reference expected behavior:
After pressing Cmd+Z, the newly inserted editable void block is removed.
The undo step appears to undo the insertion of the editable void block.
Actual behavior
Local actual behavior:
After pressing Cmd+Z, only the abc text inside the native Name input is cleared.
The newly inserted editable void block remains in the document.
Environment
Slate Version: v2 branch, commit ce2bd6c6
Operating System: macOS
Browser: Chrome
Local examples site: http://localhost:3100
Live reference site: https://www.slatejs.org
TypeScript Version: No response
Context
This was manually reproduced on the current local v2 build after the latest pull. The behavior appears specific to undo/history coordination between an inserted editable void Slate node and a native input rendered inside that void.
Description
In
examples/editable-voids, undo behaves differently after adding a new editable void and typing into the nativeNameinput inside that newly inserted block.The live reference removes the newly inserted editable void block when
Cmd+Zis pressed. The localv2build only clears the input value and leaves the newly inserted editable void block in the document.This looks like an undo/history boundary issue between inserting the editable void Slate node and editing the native input rendered inside it.
Recording
Screenshots attached below:
Live reference expected behavior:
Local actual behavior:
Video attached below:
issue-007-editable-voids-input-undo-history.mp4
Sandbox
No standalone sandbox. Reproduced in the Slate Editable Voids example.
Local reproduction URL:
http://localhost:3100/examples/editable-voidsLive reference URL:
https://www.slatejs.org/examples/editable-voidsSteps
To reproduce the behavior:
examples/editable-voids.+button to insert a new editable void block.Nameinput of the newly inserted editable void block, typeabc.Cmd+Z.Expectation
The local behavior should match the live reference behavior.
Live reference expected behavior:
Cmd+Z, the newly inserted editable void block is removed.Actual behavior
Local actual behavior:
Cmd+Z, only theabctext inside the nativeNameinput is cleared.Environment
v2branch, commitce2bd6c6http://localhost:3100https://www.slatejs.orgContext
This was manually reproduced on the current local
v2build after the latest pull. The behavior appears specific to undo/history coordination between an inserted editable void Slate node and a native input rendered inside that void.