From ce3ab24dc09c73d3aa096bd724e27f4d1e255dab Mon Sep 17 00:00:00 2001 From: f Date: Mon, 24 Jun 2024 17:47:08 -0300 Subject: [PATCH] =?UTF-8?q?fixup!=20fix:=20no=20enviar=20el=20formulario?= =?UTF-8?q?=20si=20tiene=20alg=C3=BAn=20atributo=20de=20htmx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/controllers/form_validation_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/form_validation_controller.js b/app/javascript/controllers/form_validation_controller.js index 862ca9f3..8756e272 100644 --- a/app/javascript/controllers/form_validation_controller.js +++ b/app/javascript/controllers/form_validation_controller.js @@ -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 {