Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
MisRob committed Feb 10, 2023
1 parent f43570d commit 9a442fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/tabs/KTabsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
:tabindex="tabIndexAttr(tab.id)"
:aria-selected="ariaSelectedAttr(tab.id)"
:aria-controls="ariaControlsAttr(tab.id)"
@click="onClick(tab.id, navigate)"
@click="event => onClick(tab.id, navigate, event)"
>
<!-- @slot Optional slot for tab labels. Exposes `tab` object and `isActive` boolean. -->
<slot
Expand Down Expand Up @@ -227,12 +227,13 @@
focusActiveTab() {
this.focusTab(this.activeTabIdx);
},
onClick(tabId, navigate) {
onClick(tabId, navigate, event) {
console.log(event)
this.focusedTabIdx = this.getTabIdx(tabId);
this.emitActivate(tabId);
if (navigate) {
/* if (navigate) {
navigate();
}
} */
},
onKeyUp(event) {
const handlers = {
Expand Down

0 comments on commit 9a442fe

Please sign in to comment.