[bug]: Popover does not close with the same button #1700
Labels
issue: bug
Issue reporting a bug
source: design-system
relates to design-system package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Milestone
What version of strapi-design-system are you using?
Npm version: 8.15.1
Node.js version: 20.11.1
Strapi Design System version: 1.14.1
Browser: Chrome
What's Wrong?
When you open a pop-up window with a button, it does not close on the second click (as it should be). I think this is due to the fact that both events are triggered: OnClick on the button, and onDismiss on the Popover. They change each other's states.
As you can see in this video, this bug is in Storybook Strapi. Also, when creating my plugin, I got the same error.
bandicam.2024-04-23.21-54-25-523.mp4
To Reproduce
This bug you can find the error in Storybook Strapi.
Expected Behaviour
Each time the button is clicked, the Popover must either open or close.
The text was updated successfully, but these errors were encountered: