@salesforcedevs/dx-components 1.40.0-docs-feedback-1 → 1.40.0-docs-feedback-2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.40.0-docs-feedback-1",
3
+ "version": "1.40.0-docs-feedback-2",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -150,8 +150,10 @@ export default class TreeItem extends LightningElement {
150
150
  * ancestor expansion, avoiding flicker caused by manual toggling.
151
151
  */
152
152
  if (this.isContentlessParent) {
153
- this.sendGtm(event);
154
- return;
153
+ if (this._treeNode.link?.href) {
154
+ this.sendGtm(event);
155
+ return;
156
+ }
155
157
  }
156
158
 
157
159
  if (this.isParent) {
@@ -43,7 +43,7 @@ export default class TreeTile extends LightningElement {
43
43
  * screen reader users (WCAG 2.4.4)
44
44
  */
45
45
  get linkAriaLabel(): string | null {
46
- if (!this.treeNode.redirectToChild) {
46
+ if (!this.treeNode.redirectToChild || !this.treeNode.link?.href) {
47
47
  return null;
48
48
  }
49
49
  const destinationLabel = this.treeNode.children?.[0]?.label;