slate-angular 17.4.1 → 17.4.2

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.
@@ -3378,8 +3378,10 @@ class SlateEditable {
3378
3378
  else {
3379
3379
  domSelection.removeAllRanges();
3380
3380
  }
3381
- newDomRange && this.scrollSelectionIntoView(this.editor, newDomRange);
3382
3381
  setTimeout(() => {
3382
+ // handle scrolling in setTimeout because of
3383
+ // dom should not have updated immediately after listRender's updating
3384
+ newDomRange && this.scrollSelectionIntoView(this.editor, newDomRange);
3383
3385
  // COMPAT: In Firefox, it's not enough to create a range, you also need
3384
3386
  // to focus the contenteditable element too. (2016/11/16)
3385
3387
  if (newDomRange && IS_FIREFOX) {