Skip to content

Commit 0c67f0f

Browse files
Merge pull request #129 from webdev-dev/master
Isotope Grid Search + Sort Fix
2 parents 952d1d7 + 14ca29b commit 0c67f0f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/IsotopeGrid/IsotopeGrid.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ var IsotopeGrid = function (_React$Component) {
215215
if (reload !== this.state.reload) this.setState({ reload: reload });
216216
if (Object.keys(options).length && this.state.isotope) {
217217
this.state.isotope.arrange(_extends({}, options));
218-
} else if (!Object.keys(options).length) {
218+
} else if (Object.keys(options).length) {
219219
this.createIsotope();
220220
}
221221
}
@@ -231,7 +231,6 @@ var IsotopeGrid = function (_React$Component) {
231231
if (this.state.reload) {
232232
this.state.isotope.reloadItems();
233233
}
234-
this.state.isotope.arrange();
235234
}
236235
}
237236
}, {

src/IsotopeGrid/IsotopeGrid.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class IsotopeGrid extends React.Component {
169169
if (reload !== this.state.reload) this.setState({ reload });
170170
if (Object.keys(options).length && this.state.isotope) {
171171
this.state.isotope.arrange({ ...options });
172-
} else if (!Object.keys(options).length) {
172+
} else if (Object.keys(options).length) {
173173
this.createIsotope();
174174
}
175175
}
@@ -183,7 +183,6 @@ class IsotopeGrid extends React.Component {
183183
if (this.state.reload) {
184184
this.state.isotope.reloadItems();
185185
}
186-
this.state.isotope.arrange();
187186
}
188187
}
189188

0 commit comments

Comments
 (0)