@syncfusion/ej2-image-editor 26.1.35 → 26.1.38

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.
@@ -4808,7 +4808,10 @@ var Draw = /** @__PURE__ @class */ (function () {
4808
4808
  }
4809
4809
  };
4810
4810
  Draw.prototype.open = function (data) {
4811
- document.getElementById(this.parent.element.id + '_dropArea').style.display = 'none';
4811
+ var dropArea = document.getElementById(this.parent.element.id + '_dropArea');
4812
+ if (dropArea) {
4813
+ dropArea.style.display = 'none';
4814
+ }
4812
4815
  if (!this.parent.disabled) {
4813
4816
  this.openURL = data;
4814
4817
  this.restoreOldImage();
@@ -4829,7 +4832,10 @@ var Draw = /** @__PURE__ @class */ (function () {
4829
4832
  };
4830
4833
  Draw.prototype.fileSelect = function (inputElement, args) {
4831
4834
  var parent = this.parent;
4832
- document.getElementById(parent.element.id + '_dropArea').style.display = 'none';
4835
+ var dropArea = document.getElementById(parent.element.id + '_dropArea');
4836
+ if (dropArea) {
4837
+ dropArea.style.display = 'none';
4838
+ }
4833
4839
  if (!parent.disabled) {
4834
4840
  var filesData = void 0;
4835
4841
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
@@ -21282,7 +21288,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
21282
21288
  if (isNullOrUndefined(data)) {
21283
21289
  return;
21284
21290
  }
21285
- document.getElementById(this.element.id + '_dropArea').style.display = 'none';
21291
+ var dropArea = document.getElementById(this.element.id + '_dropArea');
21292
+ if (dropArea) {
21293
+ dropArea.style.display = 'none';
21294
+ }
21286
21295
  this.notify('draw', { prop: 'open', value: { data: data } });
21287
21296
  };
21288
21297
  /**
@@ -22312,7 +22321,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
22312
22321
  this.notify('toolbar', { prop: 'destroy-top-toolbar', onPropertyChange: false });
22313
22322
  this.notify('toolbar', { prop: 'create-toolbar', onPropertyChange: false });
22314
22323
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
22315
- document.getElementById(this.element.id + '_dropArea').style.display = 'block';
22324
+ var dropArea = document.getElementById(this.element.id + '_dropArea');
22325
+ if (dropArea) {
22326
+ dropArea.style.display = 'block';
22327
+ }
22316
22328
  };
22317
22329
  // Toolbar related codes
22318
22330
  ImageEditor.prototype.applyShapes = function () {