We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent d1c5310 commit 5563285Copy full SHA for 5563285
packages/react-tabs/src/index.tsx
@@ -95,8 +95,10 @@ export default function Tabs(props: TabsProps) {
95
if (flowNav.nav.length > 0) {
96
flowNav.nav.forEach((item) => {
97
const curWidth = item.curWidth - deviation;
98
- if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) {
99
- hiddenNav.push(item.index);
+ if (flowNav.displayStart > 0 || flowNav.displayEnd > 0) {
+ if (curWidth < flowNav.displayStart || curWidth > flowNav.displayEnd) {
100
+ hiddenNav.push(item.index);
101
+ }
102
}
103
});
104
hiddenNavSet(hiddenNav);
0 commit comments