-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
None
-
None
-
None
Steps to reproduce
- Use a field with a validator https://nightly.magnolia-cms.com/.magnolia/admincentral#app:resources:edit;/ui-framework-jcr/dialogs/rename.yaml:edit
- Wrap the field into horizontalLayout
jcrName: $type: compositeField itemProvider: $type: currentItemProvider layout: $type: horizontal properties: someField: $type: textField name: $type: textField required: true validators: - $type: nodeNameValidator
- Open https://nightly.magnolia-cms.com/.magnolia/admincentral#app:tours:browser;/magnolia-travels/Vietnam--Tradition-and-Today::
- Click rename action
- Write Hut-to-Hut-in-the-Swiss-Alps into the new name field
Expected results
Validation error is shown below the correct field.
Actual results
Validation error is shown at below the first field.
Workaround
Use the default stacked layout.
Development notes
https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/framework/layout/HorizontalLayoutProducer.java?at=release%2F6.2 doesn't use the field layout producer as the default layout https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/framework/layout/StackedLayoutProducer.java#59
Acceptance criteria
- duplicates
-
MGNLUI-7668 Validation message not displayed in horizontal layout
- Closed