Skip to content

Commit 8e44d11

Browse files
author
Wout Fierens
committed
Merge pull request svgdotjs#179 from Shtong/master
Fixed a bug where Element.style() would not save empty values in IE11
2 parents 63bf7b9 + cd4bf2a commit 8e44d11

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@
12791279
}
12801280

12811281
} else {
1282-
this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? null : v
1282+
this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v
12831283
}
12841284

12851285
return this

0 commit comments

Comments
 (0)