1
0
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:
Dylan Schiemann
2022-01-31 11:50:34 -07:00
committed by GitHub
parent 6d62abc103
commit 27deaf3175
2 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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(