mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 17:39:57 +02:00
* Revert #4749 See note at https://github.com/ianstormtaylor/slate/pull/4749#issuecomment-1025742142 * Create olive-bags-talk.md Add changeset
This commit is contained in:
@@ -214,11 +214,8 @@ export const Editable = (props: EditableProps) => {
|
||||
// Otherwise the DOM selection is out of sync, so update it.
|
||||
state.isUpdatingSelection = true
|
||||
|
||||
const newDomRange =
|
||||
selection &&
|
||||
hasDomSelectionInEditor &&
|
||||
ReactEditor.toDOMRange(editor, selection)
|
||||
|
||||
const newDomRange = selection && ReactEditor.toDOMRange(editor, selection)
|
||||
|
||||
if (newDomRange) {
|
||||
if (Range.isBackward(selection!)) {
|
||||
domSelection.setBaseAndExtent(
|
||||
|
Reference in New Issue
Block a user