Skip to content

Commit 842ce53

Browse files
committed
refactor(carousel): remove unused methods
1 parent 03d1a10 commit 842ce53

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

projects/igniteui-angular/src/lib/carousel/carousel.component.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff 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

11301108
export interface ISlideEventArgs extends IBaseEventArgs {

0 commit comments

Comments
 (0)