Skip to content
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

Example with ClickAwayListener #91

Open
rchancey opened this issue Feb 11, 2022 · 1 comment
Open

Example with ClickAwayListener #91

rchancey opened this issue Feb 11, 2022 · 1 comment

Comments

@rchancey
Copy link

I tired wrapping this with ClickAwayListener but not effect. Is there a way to wrap the popper with a ClickAwayListener?

@jedwards1211
Copy link
Member

Sorry for the long delay...can you show me a code example?

If you're wrapping <PopupState> with a <ClickAwayListener> it won't work because <PopupState> doesn't forward its ref, but you could wrap something in the child function with <ClickAwayListener>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants