Undo doesn't work properly after drag & drop text
fuchen opened this issue · comments
fuchen commented
Description
Undo doesn't work properly after drag & drop text.
Recording
slate-bug-report.mp4
Steps
To reproduce the behavior:
- Open rich text example: https://www.slatejs.org/examples/richtext
- Turn the quoted text into a heading element
- Select part of text in the heading element, drag and drop it into the paragraph element
- Undo
Expectation
Content of the heading element should be restored.
**Actual
Content of the heading element is restored.
And the heading element is turned back to quoted text.
It looks like that undo is invoked twice.
Environment
- Slate Version: 0.100.0
- Operating System: Windows 10
- Browser: Edge 119.0.2151.44