@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.
@@ -5828,9 +5828,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
5828
5828
  this.show(null, e);
5829
5829
  if (!this.isMobile) {
5830
5830
  if (!isNullOrUndefined(this.leftCalendar)) {
5831
- this.isRangeIconClicked = false;
5832
5831
  this.calendarFocus();
5833
- this.isRangeIconClicked = true;
5834
5832
  }
5835
5833
  }
5836
5834
  addClass([this.inputWrapper.container], [INPUTFOCUS$1]);
@@ -6992,16 +6990,11 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
6992
6990
  if (event) {
6993
6991
  leftCalendar = closest(event.target, '.' + LEFTCALENDER);
6994
6992
  }
6995
- if (!isNullOrUndefined(leftCalendar)) {
6996
- this.leftCalendar.children[1].firstElementChild.focus();
6993
+ if (event && isNullOrUndefined(leftCalendar)) {
6994
+ rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
6997
6995
  }
6998
- else {
6999
- if (event) {
7000
- rightCalendar = event && closest(event.target, '.' + RIGHTCALENDER);
7001
- }
7002
- if (!isNullOrUndefined(rightCalendar)) {
7003
- this.rightCalendar.children[1].firstElementChild.focus();
7004
- }
6996
+ if (!isNullOrUndefined(leftCalendar) || !isNullOrUndefined(rightCalendar)) {
6997
+ this.inputWrapper.container.focus();
7005
6998
  }
7006
6999
  addClass([ele], SELECTED$3);
7007
7000
  this.calendarIconEvent();