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
TransitionablePortal: onClose is called even on button click when controlled #4056
Labels
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
layershifter
changed the title
TransitionablePortal onClose is called even on button click when controlled
TransitionablePortal: onClose is called even on button click when controlled
Sep 7, 2020
I would like to solve it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Steps
In this sandbox, click Open Portal, then click Close Portal. Check the console.
https://codesandbox.io/s/happy-drake-yly34?file=/example.js
Expected Result
One callback of
onClose
triggeredActual Result
Two callbacks of
onClose
triggeredVersion
"semantic-ui-react": "1.2.1"
Testcase
https://codesandbox.io/s/happy-drake-yly34?file=/example.js
The text was updated successfully, but these errors were encountered: