Skip to content

Force pagination: how to setCurrent page to 1 #4687

Answered by salihozdemir
v4voloshyn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @v4voloshyn,

I think you can use the setCurrent method to set the current 1 when you switch the tabs. Here is an example:

<Tabs
  onChange={() => {
    setCurrent(1);
  }}
></Tabs>

I hope this can help you.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by omeraplak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants