-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datepicker): change min/max date error message (#3607)
Fixes #2922 BREAKING CHANGE: 'ngbDate' validator error messages were changed to be more explicit and aligned with Angular validators. For the following use-case `<ngb-datepicker [ngModel]="{year: 2019, month: 12, day: 31}" [minDate]="{year: 2020, month: 1, day: 1}"></ngb-datepicker>` form control errors are: Before ``` ngbDate: { requiredBefore: { year: 2020, month: 1, day: 1 } } ``` After ``` ngbDate: { minDate: { minDate: { year: 2020, month: 1, day: 1 }, actual: { year: 2019, month: 12, day: 31 } } ``` Same change is applied for `requiredAfter` and `maxDate`.
- Loading branch information
1 parent
0841abe
commit 501a1a0
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters