File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,6 @@ let instanceCount = 0;
2424export default class IvyTabsTabListComponent extends Component {
2525 registerWithTabsContainer = modifier ( ( ) => {
2626 this . args . tabsContainer . registerTabList ( this ) ;
27- // if none of the tabs are selected, try to select one
28- let selected = this . tabs . find ( ( tab ) => tab . isSelected ) ;
29- if ( ! selected && this . tabs . length > 0 ) {
30- this . selectTab ( ) ;
31- }
3227 return ( ) => {
3328 this . args . tabsContainer . unregisterTabList ( this ) ;
3429 } ;
@@ -209,7 +204,7 @@ export default class IvyTabsTabListComponent extends Component {
209204 selectTab ( ) {
210205 const selection = this . selection ;
211206
212- if ( isNone ( selection ) || this . tabs . length === 1 ) {
207+ if ( isNone ( selection ) && this . tabs . length === 1 ) {
213208 this . selectTabByIndex ( 0 ) ;
214209 } else {
215210 this . selectTabByModel ( selection ) ;
You can’t perform that action at this time.
0 commit comments