osl-base-extended 11.1.0 → 11.2.0

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.
@@ -2343,7 +2343,7 @@ class OslDatepicker {
2343
2343
  onYearSelected(normalizedYear, datepicker) {
2344
2344
  const current = this._model ? this._toDate(this._model.split('T')[0]) : null;
2345
2345
  const updated = current ?? new Date();
2346
- updated.setFullYear(normalizedYear.getFullYear());
2346
+ updated.setFullYear(new Date(normalizedYear)?.getFullYear());
2347
2347
  datepicker.close();
2348
2348
  this.onDateChange(updated);
2349
2349
  }