-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onClick on children of is OutsideClickHandler prevented #44
Comments
Can you share some code? |
@ljharb if i click any options inside a dropdown ( i tried with event.stopPropagation & immediatePropagation() inside the outsideClick event handler. That is not working |
@Karthick-FK can you make a codesandbox that repros the issue? |
@ljharb I have found out the reason for the issue. i have configured a custom option (check box wit label) for my react-selct. If i remove this
components={{ const option = (props: any) => { I will try to fix or set up a code sandbox and update here |
@ljharb On my further analysis , am not able to replicate this in code sandbox. https://codesandbox.io/s/proud-moon-ekcze?file=/src/index.js Also, i used the same select in my other screen. I introduced I assume there will be some css issue (grid, flex) or z-index issue. But still no luck. Will update if i find anything. |
I have wrapped some components with
OutsideClickHandler
theonOutsideClick
works but I've noticed that none of myonClick
handlers are working. It should not stop interaction on children ofOutsideClickHandler
.The text was updated successfully, but these errors were encountered: