altcha 3.0.7 → 3.0.8

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.
@@ -6076,7 +6076,7 @@
6076
6076
  }
6077
6077
  });
6078
6078
  onMount(() => {
6079
- log("mounted", "3.0.7");
6079
+ log("mounted", "3.0.8");
6080
6080
  if (instance) {
6081
6081
  globalThis.$altcha.instances.add(instance);
6082
6082
  }
@@ -6349,10 +6349,14 @@
6349
6349
  reset$1();
6350
6350
  }
6351
6351
  function onFormSubmit(ev) {
6352
- set(elSubmitter, ev.submitter, true);
6352
+ const target = ev.target;
6353
+ if (target?.getAttribute("data-code-challenge") === "true") {
6354
+ return;
6355
+ }
6353
6356
  if (get(auto) === "onsubmit" && get(currentState) === State.UNVERIFIED) {
6354
6357
  ev.preventDefault();
6355
6358
  ev.stopPropagation();
6359
+ set(elSubmitter, ev.submitter, true);
6356
6360
  show();
6357
6361
  verify().then((result) => {
6358
6362
  if (result && !get(codeChallenge)) {