From 48a0687736cd1ff017f8dd04e3f6c11c5479a8df Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:28:59 +0200 Subject: [bugfix/frontend] Add `nosubmit` option to form fields + use it when instance custom CSS disabled (#2290) --- web/source/settings/lib/form/get-form-mutations.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/source/settings/lib/form/get-form-mutations.ts') diff --git a/web/source/settings/lib/form/get-form-mutations.ts b/web/source/settings/lib/form/get-form-mutations.ts index 6e1bfa02d..a3dc36601 100644 --- a/web/source/settings/lib/form/get-form-mutations.ts +++ b/web/source/settings/lib/form/get-form-mutations.ts @@ -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(); -- cgit v1.2.3