Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Tooltip/popover problem when app inside iframe #68

Open
justanotherco opened this issue May 30, 2020 · 1 comment
Open

Tooltip/popover problem when app inside iframe #68

justanotherco opened this issue May 30, 2020 · 1 comment

Comments

@justanotherco
Copy link

justanotherco commented May 30, 2020

Hi there,

Thanks for keeping Element alive, you've fixed a lot of bugs with this fork!

But one still remains - and that is when loading the app inside an iframe, the popover/tooltips are still created in the site's root document HTML (not inside the iframe's document HTML) so they don't work properly, because they appear in random place not connected to iframe.

Is it possible to give tooltips/popovers a target document? Such as:

document.getElementById('frame-with-app').contentWindow.document

Thanks in advance for any info.

@CarterLi
Copy link

CarterLi commented Jun 1, 2020

It's strange. We don't use top, parent or something similar, just pure document

if (this.appendToBody) document.body.appendChild(this.popperElm);

Can you provide a test case?

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

No branches or pull requests

2 participants