mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-16 04:04:06 +02:00
reversing return only logic (#1206)
This commit is contained in:
committed by
Ian Storm Taylor
parent
d6859bef53
commit
b45e63c472
@@ -1448,7 +1448,7 @@ class Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PERF: exit early if both start and end have been found.
|
// PERF: exit early if both start and end have been found.
|
||||||
return start != null && end != null
|
return start == null || end == null
|
||||||
})
|
})
|
||||||
|
|
||||||
if (isSelected && start == null) start = 0
|
if (isSelected && start == null) start = 0
|
||||||
|
Reference in New Issue
Block a user