We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20c25de commit cdc5d94Copy full SHA for cdc5d94
src/main/resources/META-INF/frontend/fcEnhancedTabs/connector.js
@@ -65,7 +65,7 @@
65
buttons = tabs._buttons;
66
const selectedIndex = buttons.findIndex(e=>e.item.component && e.item.component.querySelector('vaadin-tab[selected]'));
67
let overflowIndex = buttons.findIndex(e=>e.style.visibility);
68
- while (selectedIndex>=overflowIndex && overflowIndex>0 && buttons[selectedIndex].style.visibility) {
+ while (selectedIndex>=overflowIndex && overflowIndex>=0 && buttons[selectedIndex].style.visibility) {
69
buttons[0].parentElement.insertBefore(buttons[selectedIndex], buttons[overflowIndex--]);
70
__detectOverflow();
71
buttons[selectedIndex]._position = selectedIndex;
0 commit comments