components icon indicating copy to clipboard operation
components copied to clipboard

Datepicker - format date when focus is lost

Open alex321 opened this issue 9 years ago • 3 comments

Proposal:

Hey,

Currently, if you select a date from the datepicker pop-up, you get the date using the format function provided for the DateAdapter. Could there be an option to use the same formatting function after the user has entered a date in the input and moved away?

alex321 avatar Aug 14 '17 14:08 alex321

As far as I can see, it formats the date while using keyboard input anyway.

Take a look at this plunkr: https://plnkr.co/edit/Qy8qel65RhsHZhvEbCod?p=preview

If you type in the input and look at the console, you should see that the value of the control is a Date object.

You should probably make your own focus handler and grab the value when focus is lost.

iblocks-Xander avatar Aug 14 '17 14:08 iblocks-Xander

Closing this issue as it does not follow the issue template. Please file a new issue that follows the template, which gives the team the information needed to investigate.

jelbourn avatar Aug 16 '17 00:08 jelbourn

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.