peryl 1.5.32 → 1.5.33

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.
@@ -1089,7 +1089,7 @@ class $9adf8bc2f1ba310f$export$8cfef5dc37c46888 {
1089
1089
  data = (data === null || data === void 0 ? void 0 : data.constructor) === Function ? data(event) : data;
1090
1090
  if (data === undefined && event) {
1091
1091
  if (event instanceof CustomEvent) data = event.detail;
1092
- if (event instanceof SubmitEvent) data = yield $9adf8bc2f1ba310f$var$formData(event);
1092
+ else data = yield $9adf8bc2f1ba310f$var$formData(event);
1093
1093
  }
1094
1094
  this._dispatchAction(actionType, data, event);
1095
1095
  });
@@ -1236,6 +1236,7 @@ function $9adf8bc2f1ba310f$var$formData(e) {
1236
1236
  const el = e.target;
1237
1237
  switch(el.nodeName){
1238
1238
  case "FORM":
1239
+ if (e instanceof SubmitEvent) e.preventDefault();
1239
1240
  e.preventDefault();
1240
1241
  const form = {
1241
1242
  data: {},