slate-angular 20.2.0-next.34 → 20.2.0-next.35

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.
@@ -3067,6 +3067,17 @@ class ListRender {
3067
3067
  }
3068
3068
  }
3069
3069
  }
3070
+ if (isDebug) {
3071
+ for (let i = 0; i < children.length; i++) {
3072
+ const rootNodes = [...getRootNodes(this.views[i], this.blockCards[i])];
3073
+ const index = this.viewContext.editor.children.indexOf(children[i]);
3074
+ const height = getRealHeightByElement(this.viewContext.editor, children[i]);
3075
+ rootNodes.forEach(rootNode => {
3076
+ rootNode.setAttribute('debug-index', index.toString());
3077
+ rootNode.setAttribute('debug-height', height.toString());
3078
+ });
3079
+ }
3080
+ }
3070
3081
  }
3071
3082
  destroy() {
3072
3083
  this.children.forEach((element, index) => {
@@ -3502,6 +3513,7 @@ class SlateEditable {
3502
3513
  autoScroll &&
3503
3514
  this.virtualScrollConfig.scrollContainer) {
3504
3515
  this.virtualScrollConfig.scrollContainer.scrollTop = this.virtualScrollConfig.scrollContainer.scrollTop + 100;
3516
+ this.isUpdatingSelection = false;
3505
3517
  return;
3506
3518
  }
3507
3519
  else {
@@ -3601,7 +3613,6 @@ class SlateEditable {
3601
3613
  if (isDebug && remeasureIndics.length > 0) {
3602
3614
  console.log('remeasure height by indics: ', remeasureIndics);
3603
3615
  }
3604
- measureHeightByIndics(this.editor, remeasureIndics, true);
3605
3616
  }
3606
3617
  updateContext() {
3607
3618
  const decorations = this.generateDecorations();