Browse Source

Merge pull request #595 from slavicd/master

Allow a custom setState handler on the using component
pull/611/head
Lebedev Konstantin 9 years ago
parent
commit
282e4598cb
  1. 4
      react-sortable-mixin.js

4
react-sortable-mixin.js vendored

@ -120,7 +120,11 @@
}
newState[_getModelName(this)] = items;
if (copyOptions["stateHandler"]) {
this[copyOptions["stateHandler"]](newState);
} else {
this.setState(newState);
}
(this !== _activeComponent) && _activeComponent.setState(remoteState);
}

Loading…
Cancel
Save