[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: |
|
||||||||
| 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 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. |