🌐 AI搜索 & 代理 主页
Skip to content

aria-controls not shown in b-tab #3814

@jenemde

Description

@jenemde

The tab component () doesn't show the attribute aria-controls. This also happens on the documentation page (https://bootstrap-vue.js.org/docs/components/tabs/) which makes me think it is a bug.
To me it looks like a problem with line 617 in bootstrap-vue/src/components/tabs/tabs.js:

controls: this.tab && this.tab.safeId ? this.tab.safeId() : null,

where this.tab and this.tab.safeId are undefined - changing code to:

tab && tab.safeId ? tab.safeId() : null,

is working, the attribute aria-controls is shown in the link in the tab.

  • BootstrapVue: 2.xx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions