dillon1000/react
Commit
Browse files 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 #1435Changed paths2 files
First-parent comparisonsrc/core/ReactPropTransferer.js ModifiedM src/core/__tests__/ReactPropTransferer-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…