@lvce-editor/virtual-dom 1.38.0 → 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
@@ -653,12 +653,6 @@ const createFn = info => {
653
653
  if (enabled()) {
654
654
  return;
655
655
  }
656
- if (info.preventDefault) {
657
- event.preventDefault();
658
- }
659
- if (info.stopPropagation) {
660
- event.stopPropagation();
661
- }
662
656
  const uid = getComponentUidFromEvent(event);
663
657
  const args = getEventListenerArgs(info.params, event);
664
658
  preventEventsMaybe(info, event);
@@ -756,7 +750,7 @@ const rememberFocus = ($Viewlet, dom, eventMap, uid = 0) => {
756
750
  $Previous.className = $NewFocused.className;
757
751
  $Previous.placeholder = $NewFocused.placeholder;
758
752
  if ($NewFocused.childNodes) {
759
- $Previous.append(...$NewFocused.childNodes);
753
+ $Previous.replaceChildren(...$NewFocused.childNodes);
760
754
  }
761
755
  $NewFocused.replaceWith($Previous);
762
756
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.38.0",
3
+ "version": "1.39.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -10,12 +10,6 @@ export const createFn = (info): any => {
10
10
  if (EventState.enabled()) {
11
11
  return
12
12
  }
13
- if (info.preventDefault) {
14
- event.preventDefault()
15
- }
16
- if (info.stopPropagation) {
17
- event.stopPropagation()
18
- }
19
13
  const uid = ComponentUid.getComponentUidFromEvent(event)
20
14
  const args = GetEventListenerArgs.getEventListenerArgs(info.params, event)
21
15
  preventEventsMaybe(info, event)
@@ -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
  }