@salesforcedevs/dx-components 1.40.0-docs-feedback-3 → 1.40.0-docs-feedback-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -145,15 +145,20 @@ export default class TreeItem extends LightningElement {
|
|
|
145
145
|
this.preventDefaultLinkBehavior(event);
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* A content-less parent
|
|
149
|
-
*
|
|
150
|
-
*
|
|
148
|
+
* A content-less parent that redirects to a content child navigates
|
|
149
|
+
* like a normal link (navigation handles selection and ancestor
|
|
150
|
+
* expansion). A content-less parent whose chain has no content page to
|
|
151
|
+
* redirect to only expands, it is never selected.
|
|
151
152
|
*/
|
|
152
153
|
if (this.isContentlessParent) {
|
|
153
154
|
if (this._treeNode.link?.href) {
|
|
154
155
|
this.sendGtm(event);
|
|
155
156
|
return;
|
|
156
157
|
}
|
|
158
|
+
const isSelectAction = false;
|
|
159
|
+
this.doExpand(isSelectAction);
|
|
160
|
+
this.sendGtm(event);
|
|
161
|
+
return;
|
|
157
162
|
}
|
|
158
163
|
|
|
159
164
|
if (this.isParent) {
|
|
@@ -47,7 +47,7 @@ export default class TreeTile extends LightningElement {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* The redirect can target a deep descendant, so walk the first-child
|
|
51
51
|
* chain to the node that owns the destination link and name it.
|
|
52
52
|
*/
|
|
53
53
|
let destination = this.treeNode.children?.[0];
|