Skip to content

Commit

Permalink
fix: remove inline styles individually
Browse files Browse the repository at this point in the history
Assigning directly to element.style property in IE11 strict mode results in error: Assignment to read-only properties is not allowed in strict mode
  • Loading branch information
Ingramz authored and luqven committed May 21, 2021
1 parent 23305b5 commit 40f41be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/ZoomPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ export default class ZoomPane {
removeClasses(this.el, this.closingClasses);
removeClasses(this.el, this.inlineClasses);

this.el.style = "";
this.el.style.left = "";
this.el.style.top = "";

// The window could have been resized above or below `inline`
// limits since the ZoomPane was shown. Because of this, we
Expand Down

0 comments on commit 40f41be

Please sign in to comment.