@lvce-editor/virtual-dom 1.38.1 → 1.39.0

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/dist/index.js CHANGED
@@ -750,7 +750,7 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
750
750
  $Previous.className = $NewFocused.className;
751
751
  $Previous.placeholder = $NewFocused.placeholder;
752
752
  if ($NewFocused.childNodes) {
753
- $Previous.append(...$NewFocused.childNodes);
753
+ $Previous.replaceChildren(...$NewFocused.childNodes);
754
754
  }
755
755
  $NewFocused.replaceWith($Previous);
756
756
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.38.1",
3
+ "version": "1.39.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -53,7 +53,7 @@ export const rememberFocus = (
53
53
  $Previous.className = $NewFocused.className
54
54
  $Previous.placeholder = $NewFocused.placeholder
55
55
  if ($NewFocused.childNodes) {
56
- $Previous.append(...$NewFocused.childNodes)
56
+ $Previous.replaceChildren(...$NewFocused.childNodes)
57
57
  }
58
58
  $NewFocused.replaceWith($Previous)
59
59
  }