);
}
diff --git a/src/elements/Input/Input.js b/src/elements/Input/Input.js
index 7cd27c32bf..c0e6be0da4 100644
--- a/src/elements/Input/Input.js
+++ b/src/elements/Input/Input.js
@@ -2,13 +2,12 @@ import _ from 'lodash';
import classNames from 'classnames';
import React, {Component, PropTypes, Children} from 'react';
import META from 'src/utils/Meta';
+import getUnhandledProps from 'src/utils/getUnhandledProps';
export default class Input extends Component {
static propTypes = {
children: PropTypes.node,
className: PropTypes.string,
- dataContent: PropTypes.string,
- defaultValue: PropTypes.string,
icon: PropTypes.string,
ref: PropTypes.string,
};
@@ -63,14 +62,13 @@ export default class Input extends Component {
this.props.className,
'input'
);
- const inputProps = _.clone(this.props);
- delete inputProps.className;
- delete inputProps.children;
+ const props = getUnhandledProps(this);
+
return (
{isLeftLabeled && labelChildren}
{isLeftAction && actionChildren}
-
+
{this.props.icon && icon}
{isRightLabeled && labelChildren}
{isRightAction && actionChildren}
diff --git a/src/elements/List/List.js b/src/elements/List/List.js
index 585ad64d3a..31ab66c4a5 100644
--- a/src/elements/List/List.js
+++ b/src/elements/List/List.js
@@ -4,6 +4,7 @@ import META from 'src/utils/Meta';
export default class List extends Component {
static propTypes = {
+ children: PropTypes.node,
className: PropTypes.string,
};
@@ -16,7 +17,9 @@ export default class List extends Component {
render() {
const classes = classNames('sd-list', 'ui', this.props.className, 'list');
return (
-
+
+ {this.props.children}
+
);
}
}
diff --git a/src/index.js b/src/index.js
index b0272b0fe2..958bc6c326 100644
--- a/src/index.js
+++ b/src/index.js
@@ -5,6 +5,7 @@ import Textarea from 'src/addons/Textarea/Textarea';
// Collections
import Column from 'src/collections/Grid/Column';
import Field from 'src/collections/Form/Field';
+import Fields from 'src/collections/Form/Fields';
import Form from 'src/collections/Form/Form';
import Grid from 'src/collections/Grid/Grid';
import Row from 'src/collections/Grid/Row';
@@ -43,6 +44,7 @@ export default {
// Collections
Column,
Field,
+ Fields,
Form,
Grid,
Row,
diff --git a/src/modules/Dropdown/Dropdown.js b/src/modules/Dropdown/Dropdown.js
index 340354a3a0..e8cac34da5 100644
--- a/src/modules/Dropdown/Dropdown.js
+++ b/src/modules/Dropdown/Dropdown.js
@@ -3,6 +3,7 @@ import $ from 'jquery';
import classNames from 'classnames';
import React, {Component, PropTypes} from 'react';
import META from 'src/utils/Meta';
+import getUnhandledProps from 'src/utils/getUnhandledProps';
export default class Dropdown extends Component {
static propTypes = {
@@ -43,8 +44,7 @@ export default class Dropdown extends Component {
'dropdown'
);
- const props = _.clone(this.props);
- delete props.options;
+ const props = getUnhandledProps(this);
return (