Skip to content

Commit d3562cd

Browse files
authored
fix: tabs dropdown collapse (#664)
1 parent 9852bb6 commit d3562cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useVisibleRange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function useVisibleRange(
5353
}
5454
}
5555

56-
return [startIndex, endIndex];
56+
return startIndex >= endIndex ? [0, 0] : [startIndex, endIndex];
5757
}, [
5858
tabOffsets,
5959
visibleTabContentValue,

0 commit comments

Comments
 (0)