We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Try including multiple portals on your page and then put a console log inside 'handleOutsideMouseClick' method. It triggers once for every portal.
So if I have a list of 100 items each wrapped in a portal, the event will trigger 100 times in a row when clicking on one item.
Solution: put addEventListeners inside 'openPortal' and removeEventListeners inside 'closePortal' instead of compDidMount/willUnmount
The text was updated successfully, but these errors were encountered:
Great idea! Do you want to create a PR?
Sorry, something went wrong.
False alarm. I made a mistake while fiddling with code.
No branches or pull requests
Try including multiple portals on your page and then put a console log inside 'handleOutsideMouseClick' method. It triggers once for every portal.
So if I have a list of 100 items each wrapped in a portal, the event will trigger 100 times in a row when clicking on one item.
Solution: put addEventListeners inside 'openPortal' and removeEventListeners inside 'closePortal' instead of compDidMount/willUnmount
The text was updated successfully, but these errors were encountered: