Current Behavior
The checkbox for the alt text ("Inherit from description of asset") is improperly hidden in the teaser dialog.
This issue can be reproduced in the example project following these steps:
Add a Teaser component to the page
Drag and drop an image onto the teaser component without opening the edit dialog
Open the edit dialog and switch to the "Asset" tab
Note that the "Inherit from description of asset" checkbox is hidden (when it should not be)
Note that the alt text is blank
Save & close the dialog
Note that the required alt text validation was not performed (allowed to save with empty alt text).
Open the dialog again and switch to the "Asset" tab
Drag an image into the dialog asset drop area (or otherwise pick a new image)
Note that the "Inherit from description of asset" checkbox re-appears.
Expected behavior/code
The "Inherit from description of asset" checkbox should always be present if an asset is selected.
Environment
AEM version: 6.5.17.0
Core Components version: 2.23.0 (issue not present in 2.22.0)
JRE version: 11
Additional context / Screenshots
Upon opening the teaser dialog, the checkbox is hidden here:
Bug Report
Current Behavior The checkbox for the alt text ("Inherit from description of asset") is improperly hidden in the teaser dialog. This issue can be reproduced in the example project following these steps:
Expected behavior/code The "Inherit from description of asset" checkbox should always be present if an asset is selected.
Environment
Additional context / Screenshots Upon opening the teaser dialog, the checkbox is hidden here:
This code was added in commit 07f72d7