React 18 with Next.js breaks tiny-popover
Opened this issue · 3 comments
60pfennig commented
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 commented
"dirty -fix":
onClickOutside={() =>
setIsOpen((isOpen) => {
return !isOpen ? false : true;
})
}
vladnicula commented
I am using it fine with react 18 and next 13, but for me the clickoutside never gets called
Parth909 commented
Yes, it is breaking