Commit 6fd39db
committed
fix(DraggableCore): fix passing style
When using `React.cloneElement(this.props.children, props), we used to
override style by spreading it into another object. When that was removed,
we simply passed style on, unmodified. It appears some quirk of `cloneElement`
causes the render cycle to actually lose the value of `this.props.children.props.style`,
causing it to pass `undefined`.
This, of course, breaks just about everything.
Because this is affecting dependent packages I am pushing an update now then will
add a test to catch this.1 parent 41a2c39 commit 6fd39db
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
| |||
0 commit comments