lakelib 0.1.19 → 0.1.20

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.
package/lib/lake.js CHANGED
@@ -5164,7 +5164,7 @@ function removeBox(range) {
5164
5164
  return box;
5165
5165
  }
5166
5166
 
5167
- var version = "0.1.19";
5167
+ var version = "0.1.20";
5168
5168
 
5169
5169
  // Returns the attributes of the element as an key-value object.
5170
5170
  function getAttributes(node) {
@@ -5494,7 +5494,8 @@ class History {
5494
5494
  const box = getBox(nativeNode);
5495
5495
  box.getContainer().empty();
5496
5496
  });
5497
- if (range.commonAncestor.isOutside) {
5497
+ if (range.commonAncestor.isOutside ||
5498
+ range.commonAncestor.closestContainer().get(0) !== this.container.get(0)) {
5498
5499
  return newContainer;
5499
5500
  }
5500
5501
  if (range.isInsideBox) {