Closed exihuatl closed 4 years ago
This PR fixes a problem, where onOutsideClick callback doesn't have access to correct state / props values when changes happen while layer is open.
onOutsideClick
state
props
I've created a simple example representing the issue: https://codesandbox.io/s/kind-elgamal-0njqm
Thanks for this PR @exihuatl ! This fix is in the 1.7.3 release.
This PR fixes a problem, where
onOutsideClick
callback doesn't have access to correctstate
/props
values when changes happen while layer is open.I've created a simple example representing the issue: https://codesandbox.io/s/kind-elgamal-0njqm