adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
724 stars 737 forks source link

[Image V3] Incorrect Error Message: Alternative text field #2681

Open lochdown opened 4 months ago

lochdown commented 4 months ago

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

Possible Solution

Add a line of code to hide the error message label.