Skip to content

Commit b18dd64

Browse files
authored
Merge pull request #1766 from patternfly/pfe-tabs-null-fix
fix: fix for re-renders when there is no selectedindex
2 parents 10724a1 + 0c3e86d commit b18dd64

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)