From 655e37f8649598d86deee69b87e67728b242a279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Thu, 13 Jun 2024 10:49:25 +0200 Subject: [PATCH] =?UTF-8?q?pkp/pkp-lib#9996=20Initial=20attempt=20to=20ign?= =?UTF-8?q?ore=20hidden=20fields=20for=20validate=E2=80=A6=20(#357)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * pkp/pkp-lib#9996 Remove error for input that gets hidden * pkp/pkp-lib#9996 check only visible fields for required * pkp/pkp-lib#9996 Handle correctly multiple fields removing error synchronously * pkp/pkp-lib#9996 add jsdocs --- src/components/Form/Form.vue | 6 ++- src/components/Form/FormGroup.vue | 46 ++++++++---------- src/components/Form/FormPage.vue | 29 ++---------- src/components/Form/fields/FieldBase.vue | 4 ++ src/components/Form/formHelpers.js | 59 ++++++++++++++++++++++++ 5 files changed, 90 insertions(+), 54 deletions(-) create mode 100644 src/components/Form/formHelpers.js diff --git a/src/components/Form/Form.vue b/src/components/Form/Form.vue index 52d5e0070..5e711a144 100644 --- a/src/components/Form/Form.vue +++ b/src/components/Form/Form.vue @@ -67,6 +67,7 @@