aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

[Image V3] Incorrect Error Message: Alternative text field

Open lochdown opened this issue 1 year ago • 0 comments

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:

  1. Add a description to an asset in the DAM
  2. Open a page in edit mode
  3. Drag and drop an image component
  4. Click the image component -> Click the configure (wrench icon) button
  5. Uncheck the "Inherit featured image from page" checkbox
  6. Click the image icon
  7. Select the DAM image which has a description
  8. Uncheck the "Inherit from description of asset" checkbox
  9. Add text to the Alternative text for accessibility* field
  10. Remove the text in the Alternative text for accessibility* field
  11. Check the "Inherit from description of asset" checkbox
  12. The "Error: Please fill out this field." message will appear despite there being text in the field
ImageV3Bug

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.

lochdown avatar Feb 22 '24 05:02 lochdown