[MGNLUI-6114] RichTextField validators showing error messages before submission and ignores value when submitted Created: 04/Aug/20  Updated: 05/Aug/20

Status: Open
Project: Magnolia UI
Component/s: dialogs
Affects Version/s: 6.2.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Chris Jennings Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-6112 RichTextField and CodeField ignore re... 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   

Validation errors for richTextFields are shown as soon as the dialog is opened.

Attempting to find a workaround for MGNLUI-6112 I added a validator to a richTextField. As soon as the dialog is opened, the error message is shown without giving the user a chance to enter anything.

Example:

    test: 
      $type: richTextField
      validators: 
        mandatory: 
          $type: regexpValidator
          pattern: ".+"
          errorMessage: This field is required

This is also true using emailValidator.

When a value is entered, it has no effect: the error message remains and the form cannot be submitted. The same regex, .+, works as expected to validate any character has been entered in a textField.


Generated at Mon Feb 12 09:33:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.