aem-core-wcm-components
aem-core-wcm-components copied to clipboard
[Image V3] Incorrect Error Message: Alternative text field
Bug Report
Current Behavior
The mandatory "Alternative text for accessibility" field produces the "Error: Please fill out this field." label despite the field containing text.
Steps to replicate:
- Add a description to an asset in the DAM
- Open a page in edit mode
- Drag and drop an image component
- Click the image component -> Click the configure (wrench icon) button
- Uncheck the "Inherit featured image from page" checkbox
- Click the image icon
- Select the DAM image which has a description
- Uncheck the "Inherit from description of asset" checkbox
- Add text to the Alternative text for accessibility* field
- Remove the text in the Alternative text for accessibility* field
- Check the "Inherit from description of asset" checkbox
- The "Error: Please fill out this field." message will appear despite there being text in the field
Expected behavior/code
The "Alternative text for accessibility" field should not produce an error label whilst there is text in the field.
Environment
- AEM version: 2023.12.14697.20231215T125030Z
- Core Components version: 2.23.4
- Image version: v3
Possible Solution
Add a line of code to hide the error message label.