mirror of
https://github.com/yjs/yjs.git
synced 2026-05-03 03:00:41 -04:00
fix tree walker on YXmlFragment
This commit is contained in:
@@ -55,7 +55,7 @@ class YXmlTreeWalker {
|
||||
}
|
||||
}
|
||||
do {
|
||||
if (!n._deleted && n.constructor === YXmlFragment._YXmlElement && n._start !== null) {
|
||||
if (!n._deleted && (n.constructor === YXmlFragment._YXmlElement || n.constructor === YXmlFragment) && n._start !== null) {
|
||||
// walk down in the tree
|
||||
n = n._start
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user