Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2447 from teamleadercrm/FRAF-1154-v3
Browse files Browse the repository at this point in the history
Call `onChange` prop  in input blur of DatePickerInput
  • Loading branch information
qubis741 authored Nov 16, 2022
2 parents d2ef9d5 + 485211d commit c06a1ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@teamleader/ui",
"description": "Teamleader UI library",
"version": "17.0.1",
"version": "17.0.2",
"author": "Teamleader <[email protected]>",
"bugs": {
"url": "https://github.com/teamleadercrm/ui/issues"
Expand Down
1 change: 1 addition & 0 deletions src/components/datepicker/DatePickerInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function DatePickerInput<IsTypeable extends boolean = true>({
const date = parseMultiFormatsDate(inputValue, ALLOWED_DATE_FORMATS, locale);
if (date && isAllowedDate(date, dayPickerProps?.disabledDays)) {
handleInputValueChange(getFormattedDateString(date));
onChange && onChange(date);
} else {
setDisplayError(true);
}
Expand Down

0 comments on commit c06a1ea

Please sign in to comment.