@syncfusion/ej2-calendars 22.2.8 → 22.2.10

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.
@@ -5363,7 +5363,7 @@ let DateRangePicker = class DateRangePicker extends CalendarBase {
5363
5363
  /**
5364
5364
  * Mobile View
5365
5365
  */
5366
- this.isMobile = (Browser.isDevice && this.fullScreenMode) ? true : window.matchMedia('(max-width:550px)').matches;
5366
+ this.isMobile = (Browser.isDevice) ? true : window.matchMedia('(max-width:550px)').matches;
5367
5367
  this.inputElement = this.element;
5368
5368
  this.angularTag = null;
5369
5369
  if (this.element.tagName === 'EJS-DATERANGEPICKER') {
@@ -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();
@@ -10701,7 +10694,7 @@ let TimePicker = class TimePicker extends Component {
10701
10694
  }
10702
10695
  inputHandler(event) {
10703
10696
  if (!this.readonly && this.enabled) {
10704
- if (event.action !== 'right' && event.action !== 'left' && event.action !== 'tab') {
10697
+ if (!((event.action == 'right' || event.action == 'left' || event.action == 'tab') || ((event.action == 'home' || event.action == 'end') && !this.isPopupOpen()))) {
10705
10698
  event.preventDefault();
10706
10699
  }
10707
10700
  switch (event.action) {
@@ -10721,7 +10714,7 @@ let TimePicker = class TimePicker extends Component {
10721
10714
  e: event
10722
10715
  });
10723
10716
  }
10724
- if (!this.enableMask || this.isPopupOpen()) {
10717
+ if (this.isPopupOpen()) {
10725
10718
  this.keyHandler(event);
10726
10719
  }
10727
10720
  break;