We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a09a38 commit 95bf2afCopy full SHA for 95bf2af
1 file changed
src/bar.js
@@ -404,9 +404,9 @@ export default class Bar {
404
const xs = this.task.dependencies.map((dep) => {
405
return this.gantt.get_bar(dep).$bar.getX();
406
});
407
- const valid_x = xs.reduce((_, curr) => {
408
- return x >= curr;
409
- }, x);
+ const valid_x = xs.reduce((prev, curr) => {
+ return prev && x >= curr;
+ }, true);
410
if (!valid_x) return;
411
this.update_attr(bar, 'x', x);
412
this.x = x;
0 commit comments