I added a timeout (500ms) before the form submit, because my form was submitted while the disabled-attributes were not fully removed. $(document).on("click", ".cq-dialog-submit", function (e) {
e.preventDefault();
const form = $(e.target).closest("form.cq-dialog");
cons...