[MGNLUI-1044] Form Validation: Error Header does not stay in sync with state of form Created: 05/Apr/13  Updated: 17/Apr/13  Resolved: 05/Apr/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-1011 Form Validation: 'Jump to next error'... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

The error header should stay in sync with the the validation messages in the form, but currently they do not.
If a form has validation errors, and you correct one of the fields, it instantly removes the error on the field, but the header is not updated.
The header is properly synchronized when you switch tabs or click one of the buttons.



 Comments   
Comment by Christopher Zimmermann [ 08/Apr/13 ]

Form class added valueChangeListeners to the fields, so that the form could react to field changes.
Form class overrides beforeClientResponse, and runs through the fields to find errorAmount which it sets on its state.

Generated at Mon Feb 12 08:42:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.