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

iframe content will reload #226

Open
huacat opened this issue Dec 4, 2019 · 1 comment
Open

iframe content will reload #226

huacat opened this issue Dec 4, 2019 · 1 comment

Comments

@huacat
Copy link

huacat commented Dec 4, 2019

If the dialog content include iframe tag, when switch to another one, the target dialog content will reload.

alertify.dialog('demo',function(){
    return {
        main:function(content){
            this.setContent(content);
            this.resizeTo(400,500);
        },
        setup:function(){
            return {options:{modal:false,resizable:true,padding:false}};
        }
    };
},true,'alert');
alertify.demo('<iframe src="https://time.is" style="width:98%;height:98%;"></iframe>').moveTo(10,10);

alertify.demo('<iframe src="https://time.is" style="width:98%;height:98%;"></iframe>').moveTo(450,10);
@MohammadYounes
Copy link
Owner

I believe this requires revising the dialogs stacking method to avoid moving the element in the dom.

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

No branches or pull requests

2 participants