Skip to content

Commit

Permalink
STSMACOM-857 Fix <DateRangeFilter> only shows an error in one of fa…
Browse files Browse the repository at this point in the history
…iled inputs
  • Loading branch information
BogdanDenis committed Sep 27, 2024
1 parent ebc029d commit ae4d7b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Bump up `actions/upload-artifact@v2` to `actions/upload-artifact@v4`. Refs STSMACOM-854.
* `DateRangeFilter` - add the optional `hideCalendarButton` property to hide the calendar icon button; add error message for invalid YYYY format. Refs STSMACOM-855.
* Display `System` user when there is no `updatedByUserId` field in metadata. Refs STSMACOM-858.
* Fix `<DateRangeFilter>` only shows an error in one of failed inputs. Fixes STSMACOM-857.

## [9.1.3](https://github.com/folio-org/stripes-smart-components/tree/v9.1.3) (2024-05-06)
[Full Changelog](https://github.com/folio-org/stripes-smart-components/compare/v9.1.2...v9.1.3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ const TheComponent = ({
};

setFilterValue({
...defaultFilterState,
...filterValue,
errors: {
...defaultFilterState.errors, // reset filter errors on every change
...filterValue.errors, // reset filter errors on every change
[errorName]: dateIsInvalid
},
selectedValues: newSelectedValues
Expand Down

0 comments on commit ae4d7b4

Please sign in to comment.