Datepicker sets the date to a date in the past if invalid format is entered
Closed this issue · 1 comments
CorwinMoyne commented
Bug, feature request, or proposal:
Bug
What is the expected behavior?
The input value should remain as the invalid date and expose a format error
What is the current behavior?
The date gets changed to a date in the past
What are the steps to reproduce?
choose format dd/MM/y
enter 2017/08/23
date changes to 17/08/1923
Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/rQmUz8WYRh5Vz4gwY8E4?p=info
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, MD2, OS, browsers are affected?
Angular v4.1.3, MD2 0.0.19, Chrome (not tested on other browser)
Is there anything else we should know?
dharmeshpipariya-zz commented
@CorwinMoyne it is native date parse feature, if we put wrong date then it convert to create random paste date.