Z F 7 лет назад
Родитель
Сommit
1f943c6bf9
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/lib/dragact.tsx

+ 3 - 0
src/lib/dragact.tsx

@@ -262,6 +262,9 @@ export class Dragact extends React.Component<DragactProps, DragactState> {
     }
 
     componentWillReceiveProps(nextProps: any) {
+        if(nextProps.children.length !== this.props.children.length){
+            
+        }
 
         const layout = getDataSet(nextProps.children);
         let newlayout = correctLayout(layout, this.props.col)