diff --git a/CHANGELOG.md b/CHANGELOG.md index bfd669ec0..4efcb1bcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ ### Dependency updates +## [17.0.2] - 2022-11-16 + +### Fixed + +- `DatePickerInput`: call `onChange` prop on input blur ([@qubis741](https://github.com/qubis741)) in [#2447](https://github.com/teamleadercrm/ui/pull/2447)) + ## [17.0.1] - 2022-11-16 ### Changed diff --git a/package.json b/package.json index 17f4c9b23..ef2b190c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@teamleader/ui", "description": "Teamleader UI library", - "version": "17.0.1", + "version": "17.0.2", "author": "Teamleader ", "bugs": { "url": "https://github.com/teamleadercrm/ui/issues" diff --git a/src/components/datepicker/DatePickerInput.tsx b/src/components/datepicker/DatePickerInput.tsx index 1ef958bad..6f91c6f88 100644 --- a/src/components/datepicker/DatePickerInput.tsx +++ b/src/components/datepicker/DatePickerInput.tsx @@ -143,6 +143,7 @@ function DatePickerInput({ const date = parseMultiFormatsDate(inputValue, ALLOWED_DATE_FORMATS, locale); if (date && isAllowedDate(date, dayPickerProps?.disabledDays)) { handleInputValueChange(getFormattedDateString(date)); + onChange && onChange(date); } else { setDisplayError(true); }