We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbdaf8 commit 69ba59cCopy full SHA for 69ba59c
src/index.jsx
@@ -97,10 +97,7 @@ const SortableMixin = (options = defaultOptions) => (Component) => class extends
97
this.initSortable(sortableComponent);
98
}
99
componentDidUpdate(prevProps, prevState) {
100
- const model = this.sortableOptions.model;
101
- const prevItems = prevProps[model];
102
- const currItems = this.props[model];
103
- if (prevItems !== currItems) {
+ if (this.props.items !== prevProps.items) {
104
this.initSortable(this.refs[refName]);
105
106
0 commit comments