Skip to content

usePopoverState with PopoverButton #1692

Answered by TheSisb
mel510 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mel510,

I finally figured out the issue. Our documentation is a little misleading because it uses an internal API we shouldn't be using. Instead, we should be managing visibility state on the PopoverContainer's visible prop. Here's an updated codesandbox with a solution:

https://codesandbox.io/s/paste-starter-kit-forked-7j7pg?file=/src/index.tsx

Hope this helps! We will update our docs soon.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mel510
Comment options

Answer selected by TheSisb
Comment options

You must be logged in to vote
3 replies
@mel510
Comment options

@SiTaggart
Comment options

@mel510
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants