@salesforcedevs/dx-components 1.3.387-tab → 1.3.387-tab-1

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.3.387-tab",
3
+ "version": "1.3.387-tab-1",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -32,6 +32,7 @@ export default class TabPanelList extends LightningElement {
32
32
  private showPopover: boolean = true;
33
33
  private dropdownItems: Tab[] = [];
34
34
  private hasRendered: boolean = false;
35
+ private prevTabs: string = "";
35
36
 
36
37
  private get tabElements() {
37
38
  return this.template.querySelectorAll("dx-tab-panel-item");
@@ -53,7 +54,11 @@ export default class TabPanelList extends LightningElement {
53
54
  }
54
55
 
55
56
  renderedCallback(): void {
56
- this.activeIndex = this.initialIndex;
57
+ const currentTabs = JSON.stringify(this._tabs);
58
+ if (this.prevTabs !== currentTabs) {
59
+ this.activeIndex = this.initialIndex;
60
+ this.prevTabs = currentTabs;
61
+ }
57
62
  if (!this.hasRendered) {
58
63
  this.onResize();
59
64
  this.hasRendered = true;