dillon1000/react

Commit

Don't let new keys on `style` from `transferPropsTo` override old ones

Previous behavior: `transferPropsTo(<div style={{color: 'red'}} />)` would get `color` overriden if we transfer in a `style={{color: 'blue'}}`. This is inconsistent with how other props are transfered.

This simply reverses the order of arguments.

closes #1435
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactPropTransferer.js ModifiedM src/core/__tests__/ReactPropTransferer-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…