Skip to content

How to control Tab Selection #6654

Answered by reidbarber
daninus14 asked this question in Q&A
Discussion options

You must be logged in to vote

You can implement this with controlled. The function you pass into onSelectionChange should just show the warning modal, then when "proceed" is pressed is when you actually update the selectedKey . Here's an example: https://codesandbox.io/p/sandbox/ancient-wind-mxxvzh?file=%2Fsrc%2FApp.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@daninus14
Comment options

@daninus14
Comment options

Answer selected by daninus14
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