infernojs / babel-plugin-inferno

Transforms JSX to InfernoJS vNodes
MIT License
79 stars 26 forks source link

(spike) Spread attributes fail when defined at the beginning of element #15

Closed Havunen closed 8 years ago

Havunen commented 8 years ago

Hey

Its related to this issue: https://github.com/trueadm/inferno/issues/141

When defining spread attributes at the beginning of element it overrides rest of attributes.

<List
data={data}
{...other}  /> 

is ok

<List
{...other}
data={data}  /> 

compiles wrongly. data attribute is lost.

Havunen commented 8 years ago

This seems to be fixed, closing.