Skip to content

Commit 9e21b97

Browse files
committed
MOBILE-3284 tabs: Fix tslint error in isInTransition
1 parent cf6d7b0 commit 9e21b97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/tabs/tabs.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,9 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
414414
slideNext(): void {
415415
if (this.showNextButton) {
416416
// Stop if slides are in transition.
417-
if (this.isInTransition)
417+
if (this.isInTransition) {
418418
return;
419+
}
419420

420421
if (this.slides.isBeginning()) {
421422
// Slide to the second page.
@@ -444,8 +445,9 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
444445
slidePrev(): void {
445446
if (this.showPrevButton) {
446447
// Stop if slides are in transition.
447-
if (this.isInTransition)
448+
if (this.isInTransition) {
448449
return;
450+
}
449451

450452
if (this.slides.isEnd()) {
451453
this.slides.slideTo(this.numTabsShown - this.maxSlides * 2);

0 commit comments

Comments
 (0)