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

React 18 with Next.js breaks tiny-popover #199

Open
60pfennig opened this issue Oct 20, 2023 · 3 comments
Open

React 18 with Next.js breaks tiny-popover #199

60pfennig opened this issue Oct 20, 2023 · 3 comments

Comments

@60pfennig
Copy link

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.

@60pfennig
Copy link
Author

"dirty -fix":

      onClickOutside={() =>
        setIsOpen((isOpen) => {
          return !isOpen ? false : true;
        })
      }

@vladnicula
Copy link

I am using it fine with react 18 and next 13, but for me the clickoutside never gets called

@Parth909
Copy link

Yes, it is breaking

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

3 participants