Skip to content

Commit 06c6119

Browse files
authored
fix(tabs): nav item id and aria-controls (bootstrap-vue#3832)
1 parent 981114b commit 06c6119

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/tabs/tabs.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,8 @@ export const BTabs = /*#__PURE__*/ Vue.extend({
611611
props: {
612612
tab: tab,
613613
tabs: tabs,
614-
id:
615-
tab.controlledBy ||
616-
(this.tab && this.tab.safeId ? this.tab.safeId(`_BV_tab_button_`) : null),
617-
controls: this.tab && this.tab.safeId ? this.tab.safeId() : null,
614+
id: tab.controlledBy || (tab.safeId ? tab.safeId(`_BV_tab_button_`) : null),
615+
controls: tab.safeId ? tab.safeId() : null,
618616
tabIndex,
619617
setSize: tabs.length,
620618
posInSet: index + 1,

0 commit comments

Comments
 (0)