5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:26:21 +00:00

fixup! fix: no enviar el formulario si tiene algún atributo de htmx

This commit is contained in:
f 2024-06-24 17:47:08 -03:00
parent be59478c02
commit ce3ab24dc0
No known key found for this signature in database

View file

@ -33,7 +33,7 @@ export default class extends Controller {
if (this.element.reportValidity()) {
this.element.classList.remove("was-validated");
if (!this.element.getAttributeNames().some(x => x.startsWith("hx-"))) this.element.submit();
if (this.element.getAttributeNames().some(x => x.startsWith("hx-"))) this.element.submit();
window.dispatchEvent(new CustomEvent("notification:show", { detail: { id: this.submittingIdValue } }));
} else {