@syncfusion/ej2-calendars 33.2.7 → 33.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.
@@ -343,7 +343,7 @@ let CalendarBase = class CalendarBase extends Component {
343
343
  this.getCultureValues())), this.firstDayOfWeek) : null;
344
344
  if (!isNullOrUndefined(shortNames)) {
345
345
  for (let days = 0; days <= daysCount; days++) {
346
- html += '<th class="">' + this.toCapitalize(shortNames[days]) + '</th>';
346
+ html += '<th aria-hidden="true" class="">' + this.toCapitalize(shortNames[days]) + '</th>';
347
347
  }
348
348
  }
349
349
  html = '<tr>' + html + '</tr>';
@@ -1037,7 +1037,7 @@ let CalendarBase = class CalendarBase extends Component {
1037
1037
  value = date.valueOf();
1038
1038
  }
1039
1039
  const attrs = {
1040
- className: CELL, attrs: { 'id': '' + getUniqueID('' + value) }
1040
+ className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
1041
1041
  };
1042
1042
  return this.createElement('td', attrs);
1043
1043
  }
@@ -3874,6 +3874,19 @@ let DatePicker = class DatePicker extends Calendar {
3874
3874
  }
3875
3875
  }
3876
3876
  }
3877
+ getDeviceType() {
3878
+ const userAgent = navigator.userAgent || navigator.vendor;
3879
+ if (/android/i.test(userAgent)) {
3880
+ return 'Android';
3881
+ }
3882
+ if (/iPhone/i.test(userAgent)) {
3883
+ return 'iPhone';
3884
+ }
3885
+ if (/iPad/i.test(userAgent)) {
3886
+ return 'iPad';
3887
+ }
3888
+ return 'Unknown';
3889
+ }
3877
3890
  updateHtmlAttributeToElement() {
3878
3891
  if (!isNullOrUndefined(this.htmlAttributes)) {
3879
3892
  for (const key of Object.keys(this.htmlAttributes)) {
@@ -4330,7 +4343,7 @@ let DatePicker = class DatePicker extends Calendar {
4330
4343
  });
4331
4344
  }
4332
4345
  }
4333
- if (Browser.isDevice && this.allowEdit && !this.readonly && Browser.isIos) {
4346
+ if (Browser.isDevice && this.allowEdit && !this.readonly && Browser.isIos && this.getDeviceType() !== 'iPhone') {
4334
4347
  this.inputElement.blur();
4335
4348
  }
4336
4349
  }, close: () => {