Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have 1 popver for multiple divs #142

Open
cubecleveland opened this issue Oct 7, 2021 · 1 comment
Open

Have 1 popver for multiple divs #142

cubecleveland opened this issue Oct 7, 2021 · 1 comment

Comments

@cubecleveland
Copy link

Hello, i have a table with 30 items each one of them should have 1 popover oper on click div but only 1 popver can be opeone at any given time...

Can u have 1 popover for all of them or u have to render all 30 and keep logic to close all when 1 is open ?

@alexkatz
Copy link
Owner

alexkatz commented Jun 26, 2022

Here's a codesandbox I whipped up showing how I'd approach this.

Does this make sense?

@alexkatz alexkatz reopened this Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants