Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lochdown opened this issue Feb 22, 2024 · 0 comments
Open

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

lochdown opened this issue Feb 22, 2024 · 0 comments

Comments

@lochdown
Copy link

lochdown commented Feb 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant