in src/components/UncontrolledTabs.js [87:106]
function getNextTab(index) {
const count = getTabsCount();
// Look for non-disabled tab from index to the last tab on the right
for (let i = index + 1; i < count; i++) {
if (!isTabDisabled(getTab(i))) {
return i;
}
}
// If no tab found, continue searching from first on left to index
for (let i = 0; i < index; i++) {
if (!isTabDisabled(getTab(i))) {
return i;
}
}
// No tabs are disabled, return index
return index;
}