Browse Source

Merge branch 'dev' of github.com:RubaXa/Sortable into dev

pull/572/head
RubaXa 9 years ago
parent
commit
eaade8c871
  1. 8
      react-sortable-mixin.js

8
react-sortable-mixin.js vendored

@ -35,7 +35,11 @@
onRemove: 'handleRemove', onRemove: 'handleRemove',
onSort: 'handleSort', onSort: 'handleSort',
onFilter: 'handleFilter', onFilter: 'handleFilter',
onMove: 'handleMove' onMove: 'handleMove',
getContainer: function(component){
/** @namespace this.refs — http://facebook.github.io/react/docs/more-about-refs.html */
return (component.refs[options.ref] || component).getDOMNode()
}
}; };
@ -132,7 +136,7 @@
/** @namespace this.refs — http://facebook.github.io/react/docs/more-about-refs.html */ /** @namespace this.refs — http://facebook.github.io/react/docs/more-about-refs.html */
this._sortableInstance = Sortable.create((this.refs[options.ref] || this).getDOMNode(), copyOptions); this._sortableInstance = Sortable.create(copyOptions.getContainer(this), copyOptions);
}, },
componentWillReceiveProps: function (nextProps) { componentWillReceiveProps: function (nextProps) {

Loading…
Cancel
Save