Closed makarov906 closed 4 years ago
The easiest way - just fix the root cause.
I've drafter PR with the possible fix for this issue, but it would take some time to actually test it.
Released as 3.1.1
beta, as long as I haven't found time to test it in isolation, so gonna test in some external projects first, before removing a beta flag.
Join the club.
Hello @theKashey,
I have realised that
onClickOutside
andonEscapeKey
doesn't update callbacks. I did some research, and I think it becauseuseEffect
inEffect.tsx
doesn't get deps for update those funcs (here)Or maybe there is another way to do this?