@lvce-editor/virtual-dom 1.33.0 → 1.34.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
@@ -736,6 +736,9 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
736
736
  const $Previous = $Hidden.firstChild;
737
737
  $Previous.className = $NewFocused.className;
738
738
  $Previous.placeholder = $NewFocused.placeholder;
739
+ if ($NewFocused.childNodes) {
740
+ $Previous.append(...$NewFocused.childNodes);
741
+ }
739
742
  $NewFocused.replaceWith($Previous);
740
743
  }
741
744
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -52,6 +52,9 @@ export const rememberFocus = (
52
52
  const $Previous = $Hidden.firstChild as HTMLInputElement
53
53
  $Previous.className = $NewFocused.className
54
54
  $Previous.placeholder = $NewFocused.placeholder
55
+ if ($NewFocused.childNodes) {
56
+ $Previous.append(...$NewFocused.childNodes)
57
+ }
55
58
  $NewFocused.replaceWith($Previous)
56
59
  }
57
60
  }