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.
- package/dist/external/altcha.js +6 -2
- package/dist/external/altcha.min.js +1 -1
- package/dist/external/altcha.umd.cjs +6 -2
- package/dist/external/altcha.umd.min.cjs +1 -1
- package/dist/main/altcha.i18n.js +6 -2
- package/dist/main/altcha.i18n.min.js +1 -1
- package/dist/main/altcha.i18n.umd.cjs +6 -2
- package/dist/main/altcha.i18n.umd.min.cjs +1 -1
- package/dist/main/altcha.js +6 -2
- package/dist/main/altcha.min.js +1 -1
- package/dist/main/altcha.umd.cjs +6 -2
- package/dist/main/altcha.umd.min.cjs +1 -1
- package/package.json +1 -1
|
@@ -6076,7 +6076,7 @@
|
|
|
6076
6076
|
}
|
|
6077
6077
|
});
|
|
6078
6078
|
onMount(() => {
|
|
6079
|
-
log("mounted", "3.0.
|
|
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
|
-
|
|
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)) {
|