Fix modal + form abuse (#34921)

See the comment. And due to the abuse, there is a regression: when the
modal is hidden, the form will be reset and it can't submit.

This PR fixes all problems: keep the modal with form open, and add
"loading" indicator.
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-07-01 15:19:03 +08:00
1 parent f3364ec57f
commit 6596b92140
3 files changed
+41 -16

No files matched your search

+1
View File
@@ -72,6 +72,7 @@ export function initCompLabelEdit(pageSelector: string) {
return false;
}
submitFormFetchAction(form);
return false;
},
}).modal('show');
};