()
| 147 | } |
| 148 | |
| 149 | function getLastTab() { |
| 150 | let i = getTabsCount(); |
| 151 | |
| 152 | // Look for non disabled tab from the last tab |
| 153 | while (i--) { |
| 154 | if (!isTabDisabled(getTab(i))) { |
| 155 | return i; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /* istanbul ignore next */ |
| 160 | return null; |
| 161 | } |
| 162 | |
| 163 | function getTabsCount() { |
| 164 | const { children } = props; |
no test coverage detected
searching dependent graphs…