@syncfusion/ej2-calendars 33.2.7 → 33.2.8

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.
@@ -359,7 +359,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
359
359
  this.getCultureValues())), this.firstDayOfWeek) : null;
360
360
  if (!isNullOrUndefined(shortNames)) {
361
361
  for (var days = 0; days <= daysCount; days++) {
362
- html += '<th class="">' + this.toCapitalize(shortNames[days]) + '</th>';
362
+ html += '<th aria-hidden="true" class="">' + this.toCapitalize(shortNames[days]) + '</th>';
363
363
  }
364
364
  }
365
365
  html = '<tr>' + html + '</tr>';
@@ -1054,7 +1054,7 @@ var CalendarBase = /** @__PURE__ @class */ (function (_super) {
1054
1054
  value = date.valueOf();
1055
1055
  }
1056
1056
  var attrs = {
1057
- className: CELL, attrs: { 'id': '' + getUniqueID('' + value) }
1057
+ className: CELL, attrs: { 'id': '' + getUniqueID('' + value), 'aria-selected': 'false' }
1058
1058
  };
1059
1059
  return this.createElement('td', attrs);
1060
1060
  };
@@ -3916,6 +3916,19 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
3916
3916
  }
3917
3917
  }
3918
3918
  };
3919
+ DatePicker.prototype.getDeviceType = function () {
3920
+ var userAgent = navigator.userAgent || navigator.vendor;
3921
+ if (/android/i.test(userAgent)) {
3922
+ return 'Android';
3923
+ }
3924
+ if (/iPhone/i.test(userAgent)) {
3925
+ return 'iPhone';
3926
+ }
3927
+ if (/iPad/i.test(userAgent)) {
3928
+ return 'iPad';
3929
+ }
3930
+ return 'Unknown';
3931
+ };
3919
3932
  DatePicker.prototype.updateHtmlAttributeToElement = function () {
3920
3933
  if (!isNullOrUndefined(this.htmlAttributes)) {
3921
3934
  for (var _i = 0, _a = Object.keys(this.htmlAttributes); _i < _a.length; _i++) {
@@ -4376,7 +4389,7 @@ var DatePicker = /** @__PURE__ @class */ (function (_super) {
4376
4389
  });
4377
4390
  }
4378
4391
  }
4379
- if (Browser.isDevice && _this.allowEdit && !_this.readonly && Browser.isIos) {
4392
+ if (Browser.isDevice && _this.allowEdit && !_this.readonly && Browser.isIos && _this.getDeviceType() !== 'iPhone') {
4380
4393
  _this.inputElement.blur();
4381
4394
  }
4382
4395
  }, close: function () {