diff --git a/react-sortable-mixin.js b/react-sortable-mixin.js index 4fbe731..8bf96ed 100644 --- a/react-sortable-mixin.js +++ b/react-sortable-mixin.js @@ -120,7 +120,11 @@ } newState[_getModelName(this)] = items; - this.setState(newState); + if (copyOptions["stateHandler"]) { + this[copyOptions["stateHandler"]](newState); + } else { + this.setState(newState); + } (this !== _activeComponent) && _activeComponent.setState(remoteState); }