@syncfusion/ej2-image-editor 20.4.48 → 20.4.49

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.
@@ -6387,7 +6387,8 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
6387
6387
  adjustToScreen() {
6388
6388
  // eslint-disable-next-line @typescript-eslint/no-this-alias
6389
6389
  const proxy = this;
6390
- if (!this.element.querySelector('#' + this.element.id + '_contextualToolbar').parentElement.classList.contains('e-hide') ||
6390
+ if ((!isNullOrUndefined(this.element.querySelector('#' + this.element.id + '_contextualToolbar')) &&
6391
+ !this.element.querySelector('#' + this.element.id + '_contextualToolbar').parentElement.classList.contains('e-hide')) ||
6391
6392
  (!isNullOrUndefined(this.element.querySelector('#' + this.element.id + '_headWrapper'))
6392
6393
  && !this.element.querySelector('#' + this.element.id + '_headWrapper').parentElement.classList.contains('e-hide'))) {
6393
6394
  this.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');