-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Iframe content is not persisting for cached tabs #221
Comments
@rinick This is very urgent to us as our release is stuck because of this single issue only. We've completely ported pgAdmin(https://www.pgadmin.org/) to use rc-dock until we found this issue. Can you guide me? I can work on the fix. |
We have the same problem :( |
@agwidarsito I managed to get it working. Checkout - https://github.com/pgadmin-org/pgadmin4/blob/master/web/pgadmin/static/js/helpers/Layout/LayoutIframeTab.jsx |
@adityatoshniwal how you manage to fix the issue on floating tabs? |
Hey, try setting zIndex as well along with other styles. |
@adityatoshniwal thanks a lot. |
@adityatoshniwal Hello! Experiencing something similar, but not quite the same as you. When changing the layout in such a manner that it splits the DockBox, the Iframes in the tabs all completely reload, resulting in a flash of unloaded content. Is this something that you see as well in your fixed version? |
Hi @AlbinAndersson96, |
Thanks for the recording @adityatoshniwal . I've tried emulating what you guys did in our codebase, the major difference being that we use FluentUI instead of MUI, and thus have a different Portal component. Edit: Enabling the dock-cache combined with your fix fixed our issue! Thanks a ton for sharing it! |
I open a tab where are I have form. Once the form is submitted a page is loaded.
But, as soon as I change the layout the tab goes blank.
Edit: The tab content is an iframe. cached:true doesn't work with iframes.
The text was updated successfully, but these errors were encountered: