@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.
@@ -285,8 +285,8 @@ let CalendarBase = class CalendarBase extends Component {
285
285
  }
286
286
  }
287
287
  removeContentFocus(args) {
288
- const focusedDate = this.tableBodyElement.querySelector('tr td.e-focused-date');
289
- const selectedDate = this.tableBodyElement.querySelector('tr td.e-selected');
288
+ const focusedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-focused-date') : null;
289
+ const selectedDate = !isNullOrUndefined(this.tableBodyElement) ? this.tableBodyElement.querySelector('tr td.e-selected') : null;
290
290
  if (!isNullOrUndefined(selectedDate)) {
291
291
  selectedDate.classList.remove(FOCUSEDCELL);
292
292
  }