-
Notifications
You must be signed in to change notification settings - Fork 125
React 18 with Next.js breaks tiny-popover #199
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
Comments
"dirty -fix":
|
I am using it fine with react 18 and next 13, but for me the clickoutside never gets called |
Yes, it is breaking |
try see if ref is properly passed Line 113 in fecaaef
Because clickOutside will be fired if it's not within the child react-tiny-popover/src/Popover.tsx Line 180 in fecaaef
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
after upgrading to React 18 with Next.js the onClickOutside function get called immediatly hitting the child of popover. So there is no chance to open the popver because the initial click on the open button gets somehow recognized as a clickOutside and reverts the isOpen change.
The text was updated successfully, but these errors were encountered: