mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-15 11:44:05 +02:00
fix build (prettier) (#4817)
* fix build (prettier) * fix build (prettier)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
"slate-react": patch
|
||||
"slate": patch
|
||||
'slate-react': patch
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
* Revert #4749, DOM & Slate selection are mismatching
|
||||
- Revert #4749, DOM & Slate selection are mismatching
|
||||
|
@@ -215,7 +215,6 @@ export const Editable = (props: EditableProps) => {
|
||||
state.isUpdatingSelection = true
|
||||
|
||||
const newDomRange = selection && ReactEditor.toDOMRange(editor, selection)
|
||||
|
||||
if (newDomRange) {
|
||||
if (Range.isBackward(selection!)) {
|
||||
domSelection.setBaseAndExtent(
|
||||
|
Reference in New Issue
Block a user