File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
projects/igniteui-angular/src/lib/carousel Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -946,16 +946,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
946946 return this . _indicators . toArray ( ) ;
947947 }
948948
949- private focusElement ( ) {
950- const focusedElement = this . document . activeElement ;
951-
952- if ( focusedElement . classList . contains ( 'igx-carousel-indicators__indicator' ) ) {
953- this . indicatorsElements [ this . current ] . nativeElement . focus ( ) ;
954- } else {
955- this . focusSlideElement ( ) ;
956- }
957- }
958-
959949 private getIndicatorsClass ( ) : string {
960950 switch ( this . indicatorsOrientation ) {
961951 case CarouselIndicatorsOrientation . top :
@@ -1113,18 +1103,6 @@ export class IgxCarouselComponent extends IgxCarouselComponentBase implements On
11131103 } ) ;
11141104 }
11151105 }
1116- private focusSlideElement ( ) {
1117- if ( this . leaveAnimationPlayer ) {
1118- this . leaveAnimationPlayer . animationEnd
1119- . pipe ( takeUntil ( this . destroy$ ) )
1120- . subscribe ( ( ) => {
1121- this . slides . find ( s => s . active ) . nativeElement . focus ( ) ;
1122- } ) ;
1123- } else {
1124- requestAnimationFrame ( ( ) => this . slides . find ( s => s . active ) . nativeElement . focus ( ) ) ;
1125- }
1126- }
1127-
11281106}
11291107
11301108export interface ISlideEventArgs extends IBaseEventArgs {
You can’t perform that action at this time.
0 commit comments