slate-angular 20.2.15 → 20.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4112,6 +4112,18 @@ class SlateEditable {
|
|
|
4112
4112
|
newInViewportChildren.push(element);
|
|
4113
4113
|
}
|
|
4114
4114
|
});
|
|
4115
|
+
if (operationsOfFirstElementSplitted.length > 0) {
|
|
4116
|
+
const lastIndex = newInViewportIndics[newInViewportIndics.length - 1];
|
|
4117
|
+
for (let i = lastIndex + 1; i < this.editor.children.length; i++) {
|
|
4118
|
+
const element = this.editor.children[i];
|
|
4119
|
+
const isVisible = visibleStates[i];
|
|
4120
|
+
if (isVisible) {
|
|
4121
|
+
newInViewportIndics.push(i);
|
|
4122
|
+
newInViewportChildren.push(element);
|
|
4123
|
+
break;
|
|
4124
|
+
}
|
|
4125
|
+
}
|
|
4126
|
+
}
|
|
4115
4127
|
this.inViewportIndics = newInViewportIndics;
|
|
4116
4128
|
this.inViewportChildren = newInViewportChildren;
|
|
4117
4129
|
if (isDebug) {
|