@syncfusion/ej2-layouts 29.1.34 → 29.1.37

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.
@@ -3953,7 +3953,7 @@ let DashboardLayout = class DashboardLayout extends Component {
3953
3953
  return available;
3954
3954
  }
3955
3955
  checkForSwapping(collisions, element) {
3956
- if (!this.mainElement || collisions.length === 0) {
3956
+ if (Object.keys(this.cloneObject).length === 0 || !this.mainElement || collisions.length === 0) {
3957
3957
  return false;
3958
3958
  }
3959
3959
  let direction;
@@ -4370,8 +4370,7 @@ let DashboardLayout = class DashboardLayout extends Component {
4370
4370
  }
4371
4371
  else {
4372
4372
  for (let i = 0; i < this.panels.length; i++) {
4373
- if (((!isNullOrUndefined(added) ? (this.panels[i].id !== added[0].id) : true) &&
4374
- (!isNullOrUndefined(removed) ? (this.panels[i].id !== removed[0].id) : true)) &&
4373
+ if (((!isNullOrUndefined(removed) ? (this.panels[i].id !== removed[0].id) : true)) &&
4375
4374
  (this.panels[i].row !== this.panelsInitialModel[i].row ||
4376
4375
  this.panels[i].col !== this.panelsInitialModel[i].col)) {
4377
4376
  changedPanels.push(this.panels[i]);