(index, event)
| 78 | const ref = useRef(); |
| 79 | |
| 80 | function setSelected(index, event) { |
| 81 | // Check index boundary |
| 82 | if (index < 0 || index >= getTabsCount()) return; |
| 83 | |
| 84 | const { onSelect, selectedIndex } = props; |
| 85 | |
| 86 | // Call change event handler |
| 87 | onSelect(index, selectedIndex, event); |
| 88 | } |
| 89 | |
| 90 | function getNextTab(index) { |
| 91 | const count = getTabsCount(); |
no test coverage detected
searching dependent graphs…