[bugfix/frontend] Add nosubmit option to form fields + use it when instance custom CSS disabled (#2290)

This commit is contained in:
tobi 2023-10-24 10:28:59 +02:00 committed by GitHub
commit 48a0687736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 6 deletions

View file

@ -27,6 +27,12 @@ export default function getFormMutations(
const mutationData: Array<[string, any]> = [];
Object.values(form).forEach((field) => {
if (field.nosubmit) {
// Completely ignore
// this field.
return;
}
if ("selectedValues" in field) {
// FieldArrayInputHook.
const selected = field.selectedValues();