Skip to content
Snippets Groups Projects
Unverified Commit d820acc4 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

Merge pull request #430 from iurynogueira/master

fix: select date filtering by month #406 :ambulance:
parents f718895f 7530a0a7
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,9 @@ export default function DateSelect({
setValue(selectedValue || '');
let date = d.parse(selectedValue, dateFormat, new Date());
onSelect(d.format(date, 'yyyy-MM-dd'));
if (date instanceof Date && !isNaN(date)) {
onSelect(d.format(date, 'yyyy-MM-dd'));
}
}
}
}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment