-
Notifications
You must be signed in to change notification settings - Fork 6.7k
bug(datepicker): input manually -> invalid or day/month is switched #956
Comments
Hi @wemove. Have not played with your fiddle but you have to know that To solve your problem you have to inject another |
Thanks for the quick answer! With a directive and doing something like this:
I was able to fix my problem to enter a date manually. Have a good day! |
So this would be open issue still. Since there is
and this issue is unresolved. Perhaps something can be used from http://momentjs.com/docs/#/parsing/string-format/ |
@MattiJarvinen This comment was left as a note to my future self or anyone reading the code and is willing to help. Everything works as supposed to. The "problem" is that we are missing a proper date parser, similar to the jQuery UI's parser that You are right that we can borrow "ideas" for moment's parsing, and if you (or anyone) want to implement or help to implement a |
@wemove can you explain a bit more how you did this? I tried this:
I then added the attribute "eudate" to my date picker. But when I modify the date I'm seeing:
|
@Sjors Please have a look at my blog, where I added a complete directive. I admit that it's not that beautiful, but it works well for me: http://developer.the-hideout.de/?p=119 |
@wemove thanks, that works! In my case I'm using "dd/MM/yyyy" as the format, but that was just a matter of modifying the |
@wemove Thank you for the great fix (http://developer.the-hideout.de/?p=119). Just wanted to add that it requires jQuery to function properly, as element.on(...) makes use of eventData argument, not supported by jqLite. |
@bekos a dateParser exists : https://github.com/dnasir/angular-dateParser |
@julienmeyer I know #1430. We can continue there if you want to share your opinion. |
Protect against empty selection causing exception when getting placeHolder
Hello,
I want to be able to enter the date manually (to quickly set the year or paste some other date). This seems to work partially with Chrome, but not with Firefox as you can see with this fiddle (this fiddle only works with Firefox, since Chrome does not load all resources!):
http://jsfiddle.net/BVufZ/5/
Moreover in Chrome when I use an input field with the datepicker-popup and the option:
then the day and month value are interpreted wrong when changing the date manually in the input field. With the option:
everything works fine, but I don't want the name of the month!
Can you confirm this problem?
Thanks!
The text was updated successfully, but these errors were encountered: