Skip to content

Commit aa09635

Browse files
authored
Adds optional style prop to Sortable container element
1 parent 94df38a commit aa09635

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/index.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ module.exports = class extends React.Component {
1111
static propTypes = {
1212
options: React.PropTypes.object,
1313
onChange: React.PropTypes.func,
14-
tag: React.PropTypes.string
14+
tag: React.PropTypes.string,
15+
style: React.PropTypes.object
1516
};
1617
static defaultProps = {
1718
options: {},
18-
tag: 'div'
19+
tag: 'div',
20+
style: {}
1921
};
2022
sortable = null;
2123

@@ -79,7 +81,7 @@ module.exports = class extends React.Component {
7981
}
8082
}
8183
render() {
82-
const { children, className, tag } = this.props;
83-
return React.DOM[tag]({ className }, children);
84+
const { children, className, tag, style } = this.props;
85+
return React.DOM[tag]({ className, style }, children);
8486
}
8587
}

0 commit comments

Comments
 (0)