@syncfusion/ej2-gantt 20.2.38 → 20.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.2.38
3
+ * version : 20.2.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-gantt@*",
3
- "_id": "@syncfusion/ej2-gantt@20.2.36",
3
+ "_id": "@syncfusion/ej2-gantt@20.2.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-7nClwwDPnrsSRqXw3okXeWajAGJUG7LDDgYZHbaTLopCL9EasuMZ+aFbFCqM2Ly9GXjONYH0Wo4J2kQ7VPrVBw==",
5
+ "_integrity": "sha512-Rn0knEwn29g3/0CYudcWWZQSkYbzOvP/Vlbbs+AXZKHQc0b+Kl6TFL+NFY8nuDt/Txt+oP12royOjT2GXqp0aw==",
6
6
  "_location": "/@syncfusion/ej2-gantt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-gantt",
24
24
  "/@syncfusion/ej2-vue-gantt"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.2.36.tgz",
27
- "_shasum": "9df96357502324bbdb4eeef866fe6f62a28c6eef",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-gantt/-/ej2-gantt-20.2.38.tgz",
27
+ "_shasum": "14c3049c31d3238a0dff8149dca87874decb2edd",
28
28
  "_spec": "@syncfusion/ej2-gantt@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -39,15 +39,15 @@
39
39
  "@syncfusion/ej2-buttons": "~20.2.38",
40
40
  "@syncfusion/ej2-calendars": "~20.2.38",
41
41
  "@syncfusion/ej2-data": "~20.2.38",
42
- "@syncfusion/ej2-dropdowns": "~20.2.38",
43
- "@syncfusion/ej2-grids": "~20.2.38",
42
+ "@syncfusion/ej2-dropdowns": "~20.2.39",
43
+ "@syncfusion/ej2-grids": "~20.2.39",
44
44
  "@syncfusion/ej2-inputs": "~20.2.38",
45
- "@syncfusion/ej2-layouts": "~20.2.38",
46
- "@syncfusion/ej2-lists": "~20.2.38",
47
- "@syncfusion/ej2-navigations": "~20.2.38",
48
- "@syncfusion/ej2-popups": "~20.2.38",
49
- "@syncfusion/ej2-richtexteditor": "~20.2.38",
50
- "@syncfusion/ej2-treegrid": "~20.2.38"
45
+ "@syncfusion/ej2-layouts": "~20.2.39",
46
+ "@syncfusion/ej2-lists": "~20.2.39",
47
+ "@syncfusion/ej2-navigations": "~20.2.39",
48
+ "@syncfusion/ej2-popups": "~20.2.39",
49
+ "@syncfusion/ej2-richtexteditor": "~20.2.39",
50
+ "@syncfusion/ej2-treegrid": "~20.2.39"
51
51
  },
52
52
  "deprecated": false,
53
53
  "description": "Essential JS 2 Gantt Component",
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-gantt.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "20.2.38",
78
+ "version": "20.2.39",
79
79
  "sideEffects": false
80
80
  }
@@ -460,6 +460,7 @@ var RowDD = /** @class */ (function () {
460
460
  var proxy = this.parent;
461
461
  var tempDataSource;
462
462
  var idx;
463
+ var ganttFields = this.parent.taskFields;
463
464
  if (this.parent.dataSource instanceof DataManager) {
464
465
  tempDataSource = getValue('dataOperation.dataArray', this.parent);
465
466
  }
@@ -468,7 +469,12 @@ var RowDD = /** @class */ (function () {
468
469
  }
469
470
  if (tempDataSource.length > 0 && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)) {
470
471
  for (var i = 0; i < Object.keys(tempDataSource).length; i++) {
471
- if (tempDataSource[i][this.parent.taskFields.child] === droppedRecord.taskData[this.parent.taskFields.child]) {
472
+ if (!isNullOrUndefined(droppedRecord.taskData[ganttFields.child]) &&
473
+ tempDataSource[i][ganttFields.child] === droppedRecord.taskData[ganttFields.child]) {
474
+ idx = i;
475
+ }
476
+ else if (isNullOrUndefined(droppedRecord.taskData[ganttFields.child]) &&
477
+ droppedRecord.taskData[ganttFields.id] === tempDataSource[i][ganttFields.id]) {
472
478
  idx = i;
473
479
  }
474
480
  }