Skip to content

Commit

Permalink
fix: Fixed modal "close" on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyboy committed Oct 5, 2017
1 parent 62fdf5d commit 70667ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ declare var Materialize:any;
export function toast(...args) {
Materialize.toast(...args);
}

// polyfill remove any elem in DOM - https://github.com/InfomediaLtd/angular2-materialize/issues/377 (IE)
if (!Element.prototype.remove) {
Element.prototype.remove = function remove() {
if (this.parentNode) {
this.parentNode.removeChild(this);
}
};
}

1 comment on commit 70667ad

@ashuMhatugade
Copy link

@ashuMhatugade ashuMhatugade commented on 70667ad Nov 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rubyboy Multiple modal not working for me please help. Its an emergency.

I'm trying to open three modals ,on each modal button click. But modals z-index decreasing if I'm opening modals no of times. In third attempt modal 2 and modal 3 generates behind modal 1.

Please sign in to comment.