mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
parent
5de61573bb
commit
ac140d4628
@ -23,7 +23,7 @@ module.exports = function styleHelper(style) {
|
||||
} else if (type === "object") {
|
||||
for (var name in style) {
|
||||
var value = style[name];
|
||||
if (value != null) {
|
||||
if (value != null && value !== false) {
|
||||
if (typeof value === "number" && value) {
|
||||
value += "px";
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
div style={color: 'red', fontWeight: 'bold', 'background-color':'blue'}
|
||||
div style={color: 'red', margin: false, fontWeight: 'bold', 'background-color':'blue'}
|
||||
Loading…
x
Reference in New Issue
Block a user