Skip to content

Commit e282351

Browse files
committed
Merge branch 'master' of github.com:IBM/carbon-components-angular into tooltip-ie
2 parents dc92619 + cdaca30 commit e282351

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tabs/tab-headers.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,19 @@ export class TabHeaders implements AfterViewInit, AfterContentInit {
139139
if (this.currentSelectedTab < this.allTabHeaders.length - 1) {
140140
event.preventDefault();
141141
this.allTabHeaders[this.currentSelectedTab + 1].focus();
142+
} else {
143+
event.preventDefault();
144+
this.allTabHeaders[0].focus();
142145
}
143146
}
144147

145148
if (event.key === "ArrowLeft" || event.key === "ArrowUp") {
146149
if (this.currentSelectedTab > 0) {
147150
event.preventDefault();
148151
this.allTabHeaders[this.currentSelectedTab - 1].focus();
152+
} else {
153+
event.preventDefault();
154+
this.allTabHeaders[this.allTabHeaders.length - 1].focus();
149155
}
150156
}
151157
}

0 commit comments

Comments
 (0)