Something went wrong while setting issue due date.
Tabs don't work if data-toggle attribute is missing (or wrong documentation)
Closed
Tabs don't work if data-toggle attribute is missing (or wrong documentation)
Created by: KidkArolis
This is regarding branch 2.0-wip
I thought manually calling $(".tabs").tab() shouldn't require data-toggle attributes on the <a>
elements.
It seems to be the case due to the following line in tab.js only handling clicks on those links that have the attribute. However, shouldn't manual tab() call put those attributes there / bind the tab clicks? Is this by design? In that case the documentation is wrong, because the example in #tabs section is missing those data-attributes.
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
...