shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 241 forks source link

IE flickering bug #431

Open windmaomao opened 6 years ago

windmaomao commented 6 years ago

IMPORTANT: Please provide a sample using: http://plnkr.co/edit/lV7zsw7Yqossgs9JOfQU?p=preview

I'm reporting a bug.

If you load IE, and visit demo page, http://shlomiassaf.github.io/ngx-modialog/#/bootstrap-demo. This gives you flickering effect

IE11

I actually managed to solve it, don't know exactly how, but here's the hack for now.

Just a hack for now, /plugins/bootstrap/bundle/ngx-modialog-bootstrap.es5.js, under create function,

change the line

        // backdrop.addClass('modal-backdrop fade', true);
        backdrop.addClass('modal-backdrop', true);

and add a line

            backdrop.addClass('fade');
            backdrop.removeClass(animationClass);

This will remove the flicking effect in IE. I can do a PR if needed.