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-react': patch
|
||||||
"slate": 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
|
state.isUpdatingSelection = true
|
||||||
|
|
||||||
const newDomRange = selection && ReactEditor.toDOMRange(editor, selection)
|
const newDomRange = selection && ReactEditor.toDOMRange(editor, selection)
|
||||||
|
|
||||||
if (newDomRange) {
|
if (newDomRange) {
|
||||||
if (Range.isBackward(selection!)) {
|
if (Range.isBackward(selection!)) {
|
||||||
domSelection.setBaseAndExtent(
|
domSelection.setBaseAndExtent(
|
||||||
|
Reference in New Issue
Block a user