Skip to content

Commit

Permalink
fix: tabs dropdown collapse (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ authored May 24, 2023
1 parent 9852bb6 commit d3562cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useVisibleRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function useVisibleRange(
}
}

return [startIndex, endIndex];
return startIndex >= endIndex ? [0, 0] : [startIndex, endIndex];
}, [
tabOffsets,
visibleTabContentValue,
Expand Down

1 comment on commit d3562cd

@vercel
Copy link

@vercel vercel bot commented on d3562cd May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tabs – ./

tabs-react-component.vercel.app
tabs-git-master-react-component.vercel.app

Please sign in to comment.