Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Conversation

@VKravchuk
Copy link
Contributor

If I use date-format attribute with your datepicker directive all work good and in correct format, if user select date from dropdown calendar, but if I allow user to type date, and set attribute date-typer="true", it always formatting like 'MM.DD.YYYY'. My small changes fix this issue.

@45kb
Copy link
Member

45kb commented Dec 26, 2016

hi @VKravchuk thanks for this! Just please avoid new vars declarations, please use if (dateFormat) { date = ... } else { date = ... } and we can merge this :)

@45kb 45kb merged commit 71d9cce into 720kb:master Dec 26, 2016
@45kb
Copy link
Member

45kb commented Dec 26, 2016

Awesome @VKravchuk this was a missing check, thank you 🎉

will ship this in the next release, i am waiting for more PR to be merged atm.

@45kb
Copy link
Member

45kb commented Dec 27, 2016

shipped in 2.1.8 https://github.com/720kb/angular-datepicker/releases/tag/2.1.8 thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants