react-overlays
react-overlays copied to clipboard
restore usage dom-helper.ownerDocument in useRootClose like in RootCloseWrapper
Describe the bug
Dropdown inside iframe is not trigger "root close" for iframe document
To Reproduce
Steps to reproduce the behavior:
- Render Dropdown inside iframe
- Open Menu
- Click outside Menu (inside iframe)
- Menu is not closed
Expected behavior
Dropdown should closed
Is this a regression?
If regression is to restore functionality from v1.2.0, then yes
Regression from v1.2.0, I mean – in which case we'd be happy to take a PR here.
PR #751