Promact / md2

Angular2 based Material Design components, directives and services are Accordion, Autocomplete, Collapse, Colorpicker, Datepicker, Dialog(Modal), Menu, Multiselect, Select, Tabs, Tags(Chips), Toast and Tooltip.
http://code.promactinfo.com/md2/
MIT License
379 stars 112 forks source link

Datepicker placeholder merges with incorrect input (when datepicker lose focus) #321

Open DimaStoyanov opened 6 years ago

DimaStoyanov commented 6 years ago

Bug, feature request, or proposal:

Bug bug

What is the expected behavior?

When input doesn't meet date format and datepicker lose focus, clear input value

What is the current behavior?

Input value doesn't clean (but bind variable are not assigned to incorrect value) and then placeholder move towards to input value and merges, make it unredeable

What are the steps to reproduce?

Input incorrect value like "adfsdsa" and click mouse out of datepicker. When previous value of datepicker was not empty need to do previous step twice

Which versions of Angular, MD2, OS, browsers are affected?

Angular 5