@syncfusion/ej2-calendars 24.2.8 → 24.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.
@@ -4121,7 +4121,8 @@ let DatePicker = class DatePicker extends Calendar {
4121
4121
  }
4122
4122
  if ((this.getModuleName() === 'datetimepicker')) {
4123
4123
  if (this.checkDateValue(this.globalize.parseDate(this.inputElement.value, dateOptions))) {
4124
- date = this.globalize.parseDate(this.inputElement.value.toLocaleUpperCase(), dateOptions);
4124
+ const modifiedValue = this.inputElement.value.replace(/(am|pm|Am|aM|pM|Pm)/g, (match) => match.toLocaleUpperCase());
4125
+ date = this.globalize.parseDate(modifiedValue, dateOptions);
4125
4126
  }
4126
4127
  else {
4127
4128
  if (this.calendarMode === 'Gregorian') {
@@ -11904,10 +11905,6 @@ let TimePicker = class TimePicker extends Component {
11904
11905
  }
11905
11906
  }
11906
11907
  removeClass([this.inputWrapper.container], [FOCUS]);
11907
- const blurArguments = {
11908
- model: this
11909
- };
11910
- this.trigger('blur', blurArguments);
11911
11908
  if (this.getText() !== this.inputElement.value) {
11912
11909
  this.updateValue((this.inputElement).value, e);
11913
11910
  }
@@ -11919,6 +11916,10 @@ let TimePicker = class TimePicker extends Component {
11919
11916
  if (this.inputElement.value === '') {
11920
11917
  this.invalidValueString = null;
11921
11918
  }
11919
+ const blurArguments = {
11920
+ model: this
11921
+ };
11922
+ this.trigger('blur', blurArguments);
11922
11923
  }
11923
11924
  /**
11924
11925
  * Focuses out the TimePicker textbox element.