@syncfusion/ej2-calendars 25.1.39 → 25.1.40

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.
@@ -300,8 +300,8 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
300
300
  }
301
301
  };
302
302
  CalendarBase.prototype.removeContentFocus = function (args) {
303
- var focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
304
- var selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
303
+ var focusedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-focused-date') : null;
304
+ var selectedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-selected') : null;
305
305
  if (!isNullOrUndefined(selectedDate)) {
306
306
  selectedDate.classList.remove(FOCUSEDCELL);
307
307
  }