Skip to content

Commit ed95386

Browse files
committed
review comment
1 parent 4e5b115 commit ed95386

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

projects/dxc-ngx-cdk/src/lib/dxc-tabs/dxc-tabs.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,8 @@ export class DxcTabsComponent implements OnChanges {
194194
tabLabels[index].addEventListener("mouseenter", function () {
195195
tab.onHoverHandler();
196196
});
197-
tabLabels[index].addEventListener("keyup", function (e) {
198-
if(e.key === 'Enter' || e.key === ' ')
199-
tab.onClickHandler();
200-
});
201197
tabLabels[index].addEventListener("keydown", function (e) {
202-
if(e.key === 'Enter' || e.key === ' ')
198+
if(e.keyCode === 13 || e.keyCode === 32)
203199
tab.onClickHandler()
204200
});
205201
});

0 commit comments

Comments
 (0)