jQuery UI Widgets › Forums › Editors › DateTimeInput › jqxDateTimeInput – text cursor and the Home key
Tagged: Angular datetimeinput, bootstrap datetimeinput, javascript datetimeinput, jquery datetimeinput, jqwidgets datetimeinput, jqxdatetimeinput
This topic contains 5 replies, has 2 voices, and was last updated by Hristo 9 years, 3 months ago.
-
Author
-
Hi,
I have encountered an issue with the caret/text cursor in jqxDateTimeInput.
Here’s the steps to recreate it:
1. Given an mm/dd/yyyy formatted jqxDateTimeInput, click on the year portion of the input and input a year.
2. Press the Home key (or whatever it is on a Mac). The text cursor should go to the furthest left of the input box.
3. Try inputting a month (since the text cursor should be in the month portion). The caret suddenly returns to the year portion of the date input and the supposed month input ends up in the year input instead.Here’s an example:
=> Date input at the beginning: 12/12/2012
=> Date input after step 1: 12/12/2014 (my inputted year)
=> Date input after step 3: 12/12/0114 (here, I was supposed to input ’01’ in the month, but this appeared instead)
The version currently used is 3.5.0, but I tried it on this website’s jsfiddles as well and the same thing happens. What do you think?
Thanks in advance!
Hello lordmangoknight,
Could you share link with such demo. (perhaps use
rtl: true
)
The format string is not correct about months. (‘mm’ is used for minutes)
For example
‘M’-the month, from 1 through 12;
‘MM’-the month, from 01 through 12;
‘MMM’-the abbreviated name of the month;
‘MMMM’-the full name of the month;
You could see for more details in API Documentation about property ‘formatString’
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdatetimeinput/jquery-datetimeinput-api.htm
Please take a look this example (could be useful): http://jsfiddle.net/jqwidgets/8cxPC/Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi,
Here is your formatString demo but I set the formatString to “MM/dd/yyyy”: http://jsfiddle.net/TeQMx/856/
Hello lordmangoknight,
We could not find mistake in this example. The behavior is normal, too.
We would like to recommend you to use new version of jQWidgets.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comHi,
I would like to confirm, then, if the text cursor’s behavior when pressing the Home or End button will be considered normal =)
Thanks!
Hello lordmangoknight,
Thank you for using our product.
When edit some part (ex. days – and not finish) of date and click ‘Home’ or ‘End’ and after this still input. The new values will be set on last edited part (ex. days).
Last modified part are years. (in our case)Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.