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

Bug on datepicker: Incrementing date when date format is "MM/dd/y HH:mm A" and time is set to 12:00 #300

Open harudragneel opened 6 years ago

harudragneel commented 6 years ago

Bug

Date picker value increments after clicking(focus) on input container.

date format used: MM/dd/y HH:mm A Time is set to: 12:00 (AM or PM)

*also replicated on your demo when tested

What is the expected behavior?

value should not increment even if it is stress tested on the input container.

What is the current behavior?

currently, the value increments whenever you clicked on the input container. the A format toggles AM to PM (and so on) everytime you click on the input thus, increase the value of the date.

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

Running Angular 2/4, md2 0.0.29, Ubuntu 17.10

Thanks!

bigal41 commented 6 years ago

I am experiencing the same issue.