mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-15 02:38:17 +00:00
Merge branch 'issue-15068' into production.panel.sutty.nl
This commit is contained in:
commit
c677c3ad4f
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export default class extends Controller {
|
||||||
if (this.element.reportValidity()) {
|
if (this.element.reportValidity()) {
|
||||||
this.element.classList.remove("was-validated");
|
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 } }));
|
window.dispatchEvent(new CustomEvent("notification:show", { detail: { id: this.submittingIdValue } }));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue