[ADF-2984] Show date invalid message on search date range picker (#3323)

* [ADF-2984] Show date invalid message on search date range picker

* [ADF-2984] test that required format is displayed when date input is invalid

* [ADF-2984] More space above buttons
This commit is contained in:
Suzana Dirla
2018-05-18 19:22:12 +03:00
committed by Eugenio Romano
parent 2ad5dac77a
commit 67e0c02a5a
5 changed files with 179 additions and 125 deletions

View File

@@ -127,8 +127,7 @@ export class SearchDateRangeComponent implements SearchWidget, OnInit {
const inputValue = event.srcElement.value;
if (inputValue) {
const formatDate = moment(inputValue, this.datePickerDateFormat);
const formatDate = this.dateAdapter.parse(inputValue, this.datePickerDateFormat);
if (formatDate.isValid()) {
formControl.setValue(formatDate);
}