-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"typeable" ignores "format" #583
Comments
Same here |
This is as designed. |
This is wrong. |
+1 My users need to be able to type in 1/6/1980 to mean 1st June 1980. But the pop-up locks to 6th Jan 1980. |
Hello all, I just created pullRequest 633 to handle non-standard formats! Waiting to see if @charliekassel will accept it! |
The problem still persists on 02-01-2018 |
Problem still persists. If not possible: (obviously prev tips were only my 2cents...) |
@charliekassel if it's by design, then it is bad design. Strictly from a UI perspective, if a user sees a date in a format, they won't try and type it a different way than what is displayed in most cases. |
No solution yet :( |
Good news i created a fixed on this issue 😄#718
|
I have this problem too |
pr #653 would solve this! It delegates the parsing of dates, so you can pass a parser function, the same way you can pass a formatter function |
The #653 does not solve this, this bug is not a formating problem, the typeable directive doesn't take the language directive nor the formating directive, it just keep accepting only the mm/dd/yyy format and conflict with all the component, Shame on you datepicker... |
@arthurbarbero You're right, the issue isn't about formatting, it's about parsing. vuejs-datepicker/src/components/DateInput.vue Line 121 in de0fc75
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse for reasons on why ambiguous dates such as 01/02/2020 are interpreted as mm/dd/yyyy. e.g.
#653 solves this parsing issue by providing a parse prop, which accepts a callback function, allowing you to parse user input any way you want! e.g. I forked the datepicker, merged #653, ran the build script and committed the dist dir so I could npm install it directly from git, added a parse callback in my app, and voila. Working datepicker with typeable dd/mm/yyyy format. |
The pr #653 will only solve the problem when it merge to the master, until then, Shame on you Vuejs-Datepicker. |
@arthurbarbero I don't think shame-driven development works. If you want #653 merged, you should upvote it. Also you could change your downvote on my comment stating that #653 could solve this issue, now that I've also explained to you exactly how it could solve this issue. |
Has this bug been fixed yet? This not true for me! I type in 1/6/2020 to mean 1st June 2020. But the pop-up locks to 6th Jan 2020. |
still error with format "dd/MM/yyyy" :( |
How is this still not fixed |
2021 and still the fix date format, sad. |
No other solution that migrate to other datepicker. https://github.com/mengxiong10/vue2-datepicker is good option. |
2022 End of May, still not fixed yet. |
problem is after i add props: typeable = "true", UI shows right, shown value and display format is right but after click to somewhere, it disappear. |
2023 end of october, still not fixed. |
"typeable" ignores "format" attribute and only works if I type date in format "MM.dd.yyyy"
Component use:
1.5.1 and 1.5.2
The text was updated successfully, but these errors were encountered: