mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
2ad5dac77a
commit
67e0c02a5a
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user