Skip to content

Commit 40f41be

Browse files
Ingramzluqven
authored andcommitted
fix: remove inline styles individually
Assigning directly to element.style property in IE11 strict mode results in error: Assignment to read-only properties is not allowed in strict mode
1 parent 23305b5 commit 40f41be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/ZoomPane.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ export default class ZoomPane {
243243
removeClasses(this.el, this.closingClasses);
244244
removeClasses(this.el, this.inlineClasses);
245245

246-
this.el.style = "";
246+
this.el.style.left = "";
247+
this.el.style.top = "";
247248

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

0 commit comments

Comments
 (0)