@syncfusion/ej2-calendars 22.2.8 → 22.2.9

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.
@@ -5904,9 +5904,7 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
5904
5904
  this.show(null, e);
5905
5905
  if (!this.isMobile) {
5906
5906
  if (!isNullOrUndefined(this.leftCalendar)) {
5907
- this.isRangeIconClicked = false;
5908
5907
  this.calendarFocus();
5909
- this.isRangeIconClicked = true;
5910
5908
  }
5911
5909
  }
5912
5910
  addClass([this.inputWrapper.container], [INPUTFOCUS$1]);
@@ -7077,16 +7075,11 @@ var DateRangePicker = /** @__PURE__ @class */ (function (_super) {
7077
7075
  if (event) {
7078
7076
  leftCalendar = closest(event.target, '.' + LEFTCALENDER);
7079
7077
  }
7080
- if (!isNullOrUndefined(leftCalendar)) {
7081
- this.leftCalendar.children[1].firstElementChild.focus();
7078
+ if (event && isNullOrUndefined(leftCalendar)) {
7079
+ rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
7082
7080
  }
7083
- else {
7084
- if (event) {
7085
- rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
7086
- }
7087
- if (!isNullOrUndefined(rightCalendar)) {
7088
- this.rightCalendar.children[1].firstElementChild.focus();
7089
- }
7081
+ if (!isNullOrUndefined(leftCalendar) || !isNullOrUndefined(rightCalendar)) {
7082
+ this.inputWrapper.container.focus();
7090
7083
  }
7091
7084
  addClass([ele], SELECTED$3);
7092
7085
  this.calendarIconEvent();