@lvce-editor/virtual-dom 1.36.0 → 1.37.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
@@ -645,7 +645,10 @@ const createFn = info => {
645
645
  return;
646
646
  }
647
647
  if (info.preventDefault) {
648
- event.preventDefault(event);
648
+ event.preventDefault();
649
+ }
650
+ if (info.stopPropagation) {
651
+ event.stopPropagation();
649
652
  }
650
653
  const uid = getComponentUidFromEvent(event);
651
654
  const args = getEventListenerArgs(info.params, event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.36.0",
3
+ "version": "1.37.0",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -10,7 +10,10 @@ export const createFn = (info): any => {
10
10
  return
11
11
  }
12
12
  if (info.preventDefault) {
13
- event.preventDefault(event)
13
+ event.preventDefault()
14
+ }
15
+ if (info.stopPropagation) {
16
+ event.stopPropagation()
14
17
  }
15
18
  const uid = ComponentUid.getComponentUidFromEvent(event)
16
19
  const args = GetEventListenerArgs.getEventListenerArgs(info.params, event)