@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.
@@ -4768,7 +4768,10 @@ class Draw {
4768
4768
  }
4769
4769
  }
4770
4770
  open(data) {
4771
- document.getElementById(this.parent.element.id + '_dropArea').style.display = 'none';
4771
+ const dropArea = document.getElementById(this.parent.element.id + '_dropArea');
4772
+ if (dropArea) {
4773
+ dropArea.style.display = 'none';
4774
+ }
4772
4775
  if (!this.parent.disabled) {
4773
4776
  this.openURL = data;
4774
4777
  this.restoreOldImage();
@@ -4789,7 +4792,10 @@ class Draw {
4789
4792
  }
4790
4793
  fileSelect(inputElement, args) {
4791
4794
  const parent = this.parent;
4792
- document.getElementById(parent.element.id + '_dropArea').style.display = 'none';
4795
+ const dropArea = document.getElementById(parent.element.id + '_dropArea');
4796
+ if (dropArea) {
4797
+ dropArea.style.display = 'none';
4798
+ }
4793
4799
  if (!parent.disabled) {
4794
4800
  let filesData;
4795
4801
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
@@ -21185,7 +21191,10 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
21185
21191
  if (isNullOrUndefined(data)) {
21186
21192
  return;
21187
21193
  }
21188
- document.getElementById(this.element.id + '_dropArea').style.display = 'none';
21194
+ const dropArea = document.getElementById(this.element.id + '_dropArea');
21195
+ if (dropArea) {
21196
+ dropArea.style.display = 'none';
21197
+ }
21189
21198
  this.notify('draw', { prop: 'open', value: { data: data } });
21190
21199
  }
21191
21200
  /**
@@ -22215,7 +22224,10 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
22215
22224
  this.notify('toolbar', { prop: 'destroy-top-toolbar', onPropertyChange: false });
22216
22225
  this.notify('toolbar', { prop: 'create-toolbar', onPropertyChange: false });
22217
22226
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
22218
- document.getElementById(this.element.id + '_dropArea').style.display = 'block';
22227
+ const dropArea = document.getElementById(this.element.id + '_dropArea');
22228
+ if (dropArea) {
22229
+ dropArea.style.display = 'block';
22230
+ }
22219
22231
  }
22220
22232
  // Toolbar related codes
22221
22233
  applyShapes() {