Skip to content

Commit 8125568

Browse files
committed
Fix #27 and #28 - Make sure we do not proxy refs or keys to controls
1 parent 3cda600 commit 8125568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/controls/Controls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ var Controls = React.createClass({
3434
* @return {Array.<ReactElement>} An array of components.
3535
*/
3636
renderChildren() {
37-
return React.Children.map(this.props.children, (child) => {
38-
return React.cloneElement(child, this.props);
37+
return React.Children.map(this.props.children, child => {
38+
return React.cloneElement(child, {...this.props});
3939
});
4040
},
4141

0 commit comments

Comments
 (0)