File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @patternfly/elements " : " patch"
3+ ---
4+ ` <pf-tabs> ` : prevent error when using in certain javascript frameworks
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ export abstract class BaseTabs extends LitElement {
7373
7474 #activeIndex = 0 ;
7575
76- id : string = this . id || getRandomId ( this . localName ) ;
77-
7876 /**
7977 * Tab activation
8078 * Tabs can be either [automatic](https://w3c.github.io/aria-practices/examples/tabs/tabs-automatic.html) activated
@@ -139,6 +137,7 @@ export abstract class BaseTabs extends LitElement {
139137
140138 override connectedCallback ( ) {
141139 super . connectedCallback ( ) ;
140+ this . id ||= getRandomId ( this . localName ) ;
142141 this . addEventListener ( 'expand' , this . #onTabExpand) ;
143142 BaseTabs . #instances. add ( this ) ;
144143 }
You can’t perform that action at this time.
0 commit comments