Skip to content

Commit

Permalink
use style.setProperty() to set style properties.
Browse files Browse the repository at this point in the history
When using custom css properties the syntax `style.property = 'value'`
does not work for custom css properties. Using `style.setProperty()`
instead allows custom css properties to be used.

Fixes elm-lang/html/issues/129
  • Loading branch information
harrysarson committed May 17, 2018
1 parent 06ce9cc commit e738996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elm/Kernel/VirtualDom.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ function _VirtualDom_applyStyles(domNode, styles)

for (var key in styles)
{
domNodeStyle[key] = styles[key];
domNodeStyle.setProperty(key, styles[key]);
}
}

Expand Down

0 comments on commit e738996

Please sign in to comment.