Closed psiho closed 3 years ago
Same issue here when I click anywhere on the Popover component.
The click event leads me to this block of code (Popover.js):
const handleBodyClick = useCallback(
event => {
// Ignore clicks on the popover or button
if (targetRef.current && targetRef.current.contains(event.target)) {
return
}
if (shouldCloseOnExternalClick !== false) {
close()
}
},
[onBodyClick, shouldCloseOnExternalClick, close, targetRef.current, popoverNode.current]
)
No matter where I click, it always triggers that close() function.
Thanks for reporting - fix is here: https://github.com/segmentio/evergreen/pull/1199. Will cut a patch release today or tomorrow! Thank you for your patience.
Should be fixed in 6.0.1
!
Closing this out, but let me know if this is still an issue.
I upgraded my react 16.13.1 app to evergreeui6 and now my SelectMenu behaves weird. Menu closes:
I don't even know where to start debugging :) WIll try to create a code to reproduce it.