components icon indicating copy to clipboard operation
components copied to clipboard

Datepicker - format input once it loses focus

Open alex321 opened this issue 9 years ago • 2 comments

Proposal:

Format the date in the datepicker input once it loses focus.

What is the expected behavior?

Here's a demonstration (Google Flights):

datepicker

What is the current behavior?

The datepicker doesn't format the input unless selected from the pop-up directly.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

2.0.0-beta.10

alex321 avatar Aug 30 '17 12:08 alex321

This should work now, you can see it in action on the docs site: https://material.angular.io/components/datepicker/overview. Type "Jan 2018" in the input, move focus away, observe that it changes to "1/1/2018"

mmalerba avatar May 16 '18 23:05 mmalerba

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.