tajo/react-portal

closeOnOutSideClick triggered condition

olabala opened this issue · 0 comments

closeOnOutSideClick will be triggered when I click the child node which will be remove after click

I have to wrap my click event with setTimeout because the source code uses root.contain(x) to determine whether the node is outside

Is there any other way to do this outside judgment?