Skip to content

Commit 53f52e1

Browse files
committed
fix inline styling error
At the moment inline styles are never rendered by purescript-react. I dont know if this has a negative effect on ``` aria :: forall ariaAttrs. { | ariaAttrs } -> Props aria = unsafeUnfoldProps "aria" _data :: forall dataAttrs. { | dataAttrs } -> Props _data = unsafeUnfoldProps "data" ```
1 parent 0d54027 commit 53f52e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/React/DOM/Props.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ exports.unsafeMkProps = function(key) {
1414
exports.unsafeUnfoldProps = function(key) {
1515
return function(value) {
1616
var result = {};
17+
var props = {};
18+
props[key] = result;
1719

1820
for (var subprop in value) {
1921
if (value.hasOwnProperty(subprop)) {
20-
result[key + '-' + subprop] = value[subprop];
22+
result[subprop] = value[subprop];
2123
}
2224
}
2325

24-
return result;
26+
return props;
2527
};
2628
};

0 commit comments

Comments
 (0)