Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
fix(props): Ensure style is set correctly for both an object and a st…
Browse files Browse the repository at this point in the history
…ring.

#26
  • Loading branch information
treshugart committed Jul 11, 2016
1 parent 2dc7273 commit aadcc16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export default function (CustomElement, opts) {

if (name.indexOf('on') === 0) {
syncEvent(node, name.substring(2), props[name]);
} else if (name === 'style') {
node.setAttribute('style', props[name]);
} else {
node[name] = props[name];
}
Expand Down

0 comments on commit aadcc16

Please sign in to comment.