Example with ClickAwayListener
rchancey opened this issue · 1 comments
rchancey commented
I tired wrapping this with ClickAwayListener but not effect. Is there a way to wrap the popper with a ClickAwayListener?
jedwards1211 commented
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>
.