Add close popup when click iframe for `click` trigger
Using Trigger with contextMenu supports closing on window blur, in order to cover when a user clicks/taps on an iframe, but when we use click as a trigger, this was previously not supported.
This fix modifies the handler to support both click and contextMenu as valid triggers.
- simulates document click on window blur for both click and contextMenu triggers
-
contextMenuOutsideHandler1renamed tocontextMenuScrollOutsideHandlerto be more descriptive about what case it is handling. -
contextMenuOutsideHandler2renamed toclickBlurOutsideHandlersince it is the handler for click and contextMenu triggers (similar toclickOutsideHandler)
Coverage remained the same at 76.389% when pulling bcdf1ee01340a0904b31ed7290ac4b0348d1f1b7 on stephen-james:fix/close-popup-on-iframe-click into a619be207a78b5372893cc4f7d379f0f51caa637 on react-component:master.
I also encountered this issue, could this PR get merged?
how can we trigger this in an iframe?
@zombieJ Can you please check on this. I have the same issue with iframe
@zombieJ @afc163 the same, what's going on with this issue