slate-angular 15.1.0 → 15.1.1
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.
|
@@ -2831,7 +2831,7 @@ class SlateEditableComponent {
|
|
|
2831
2831
|
else {
|
|
2832
2832
|
domSelection.removeAllRanges();
|
|
2833
2833
|
}
|
|
2834
|
-
this.scrollSelectionIntoView(this.editor, newDomRange);
|
|
2834
|
+
newDomRange && this.scrollSelectionIntoView(this.editor, newDomRange);
|
|
2835
2835
|
setTimeout(() => {
|
|
2836
2836
|
// COMPAT: In Firefox, it's not enough to create a range, you also need
|
|
2837
2837
|
// to focus the contenteditable element too. (2016/11/16)
|