[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
parent 4facad3d81
commit 48a0687736
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();