1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-15 03:33:59 +02:00

reversing return only logic (#1206)

This commit is contained in:
Ryan Yurkanin
2017-10-12 22:56:18 -04:00
committed by Ian Storm Taylor
parent d6859bef53
commit b45e63c472

View File

@@ -1448,7 +1448,7 @@ class Node {
}
// 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