Skip to content

Tooltip onOpenChange being fired with controlled state #1834

Answered by benoitgrelard
skarensmoll asked this question in Help
Discussion options

You must be logged in to vote

This is how controlled components work:

  • onOpenChange is the component telling you that the value is changing
  • open is you controlling the value

Right now, you are not updating the value in onOpenChange so it just logs, but never changes.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by skarensmoll
Comment options

You must be logged in to vote
4 replies
@benoitgrelard
Comment options

@ivanbanov
Comment options

@benoitgrelard
Comment options

@ivanbanov
Comment options

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