mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
fix(schema): previous node and child node may be exactly the same (#2493)
This commit is contained in:
committed by
Ian Storm Taylor
parent
76a88a649a
commit
fb60d4dfb7
@@ -382,7 +382,7 @@ function validateNodes(node, rule, rules = []) {
|
|||||||
|
|
||||||
function nextChild() {
|
function nextChild() {
|
||||||
index += 1
|
index += 1
|
||||||
previous = child
|
previous = index ? children.get(index - 1) : null
|
||||||
child = children.get(index)
|
child = children.get(index)
|
||||||
next = children.get(index + 1)
|
next = children.get(index + 1)
|
||||||
if (!child) return false
|
if (!child) return false
|
||||||
|
Reference in New Issue
Block a user