mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 12:41:44 +02:00
it should check the latest rangeCount, not the previous memorized one
This commit is contained in:
committed by
Ian Storm Taylor
parent
65796c8ba0
commit
8ab49c04c4
@@ -251,7 +251,7 @@ class Content extends React.Component {
|
|||||||
|
|
||||||
// Otherwise, figure out which DOM nodes should be selected...
|
// Otherwise, figure out which DOM nodes should be selected...
|
||||||
if (selection.isFocused && selection.isSet) {
|
if (selection.isFocused && selection.isSet) {
|
||||||
const current = !!rangeCount && native.getRangeAt(0)
|
const current = !!native.rangeCount && native.getRangeAt(0)
|
||||||
const range = editor.findDOMRange(selection)
|
const range = editor.findDOMRange(selection)
|
||||||
|
|
||||||
if (!range) {
|
if (!range) {
|
||||||
|
Reference in New Issue
Block a user