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

Support overlays in react portals in different document #12445

Merged
merged 1 commit into from
Aug 1, 2024

Commits on Jul 31, 2024

  1. Fixed Popover, Tooltip, Color Picker and Drop Zone when used inside M…

    …odals for embedded apps
    
    - ensure references to document and window are updated to the component's ownerDocument so
    when elements are moved via React portal to an iframe the position can be calculated correctly
    - ensure wherever we do instanceOf HTMLElement|Element we instead just check to see if the node is present or try to call the related methods (getBoundingClientRect) with a fallback since the instanceof check doesn't work when elements are rendered inside of an iframe which has its own scoped HTMLElement|Element
    vividviolet committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    db66747 View commit details
    Browse the repository at this point in the history