Skip to content

Commit 0c3e86d

Browse files
committed
fix for re-renders when there is no selectedindex
1 parent 10724a1 commit 0c3e86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elements/pfe-tabs/src/pfe-tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class PfeTabs extends PFElement {
270270
this.selectedIndex = tabIndexFromURL;
271271
}
272272

273-
if (!this.selectedIndex) this.selectedIndex = 0;
273+
if (this.selectedIndex === null) this.selectedIndex = 0;
274274

275275
if (window.ShadyCSS) this._observer.observe(this, TABS_MUTATION_CONFIG);
276276
}

0 commit comments

Comments
 (0)