Current Behavior
The default dialog selection for the Teaser component is to read the title and description from the linked page.
This isn't reflected in the Teaser model, which defaults to false for both title and description from page properties. [0]
This results in the title being displayed for the Teaser if a jcr:title is set at the component node, no page is linked and the dialog properties haven't yet been saved, even though the dialog options say otherwise.
Expected behavior/code
Expectation would be that no title is displayed while the "Get title from linked page" and "Get description from linked page" edit dialog options are selected, no page linked, and dialog properties haven't yet been saved, even if a jcr:title property is present.
Environment
AEM 6.5 latest
Core Components development branch latest
Possible Solution
Suggested fix is to flip the defaults at [0] to true.
Bug Report
Current Behavior The default dialog selection for the Teaser component is to read the title and description from the linked page.
This isn't reflected in the Teaser model, which defaults to
false
for both title and description from page properties. [0]This results in the title being displayed for the Teaser if a
jcr:title
is set at the component node, no page is linked and the dialog properties haven't yet been saved, even though the dialog options say otherwise.Expected behavior/code Expectation would be that no title is displayed while the "Get title from linked page" and "Get description from linked page" edit dialog options are selected, no page linked, and dialog properties haven't yet been saved, even if a
jcr:title
property is present.Environment
Possible Solution Suggested fix is to flip the defaults at [0] to
true
.[0] - https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/blob/master/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v1/TeaserImpl.java#L69 (CQ-4250676)