File tree 1 file changed +10
-7
lines changed
projects/coreui-angular/src/lib/tabs-2/tabs-list
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { TabsService } from '../tabs.service';
20
20
exportAs : 'cTabsList' ,
21
21
selector : 'c-tabs-list' ,
22
22
standalone : true ,
23
- imports : [ TabDirective ] ,
23
+ imports : [ ] ,
24
24
template : '<ng-content />' ,
25
25
host : {
26
26
'[attr.role]' : 'role()' ,
@@ -90,12 +90,15 @@ export class TabsListComponent {
90
90
{ allowSignalWrites : true }
91
91
) ;
92
92
93
- tabsServiceEffect = effect ( ( ) => {
94
- const activeItemIndex = this . tabs ( ) . findIndex (
95
- ( tab ) => untracked ( tab . isActive ) && untracked ( tab . itemKey ) === this . tabsService . activeItemKey ( )
96
- ) ;
97
- this . #focusKeyManager?. updateActiveItem ( activeItemIndex < 0 ? 0 : activeItemIndex ) ;
98
- } ) ;
93
+ tabsServiceEffect = effect (
94
+ ( ) => {
95
+ const activeItemIndex = this . tabs ( ) . findIndex (
96
+ ( tab ) => untracked ( tab . isActive ) && untracked ( tab . itemKey ) === this . tabsService . activeItemKey ( )
97
+ ) ;
98
+ this . #focusKeyManager?. updateActiveItem ( activeItemIndex < 0 ? 0 : activeItemIndex ) ;
99
+ } ,
100
+ { allowSignalWrites : true }
101
+ ) ;
99
102
100
103
@HostListener ( 'keydown' , [ '$event' ] )
101
104
onKeydown ( $event : any ) {
You can’t perform that action at this time.
0 commit comments