This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 1 month ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Editors › DateTimeInput › Focus lost when clicking on date
Tagged: #datetimeinput, focus, javascript datetimeinput, jquery datetimeinput, jqwidgets datetimeinput
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 1 month ago.
Here is a repro of this issue:
Go to the jQWidgets documentation page for jqxDateTimeInput: https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdatetimeinput/jquery-datetimeinput-getting-started.htm
1. Scroll down to the functional jqxDateTimeInput example.
2. Click in the edit box that holds the date. This will highlight part of the date. The control now has focus.
3. Click (with a mouse) on the calendar icon that opens the calendar dropdown.
4. Click (with the mouse) on a date.
RESULT: The focus is lost. In a “normal page” this sends the focus back to the body. On the example page, since the example is hosted in an iframe, it sends the focus back there.
EXPECTED: The focus will be on the jqxDateTimeInput. Ideally with the first part of the date selected so the user could start typing or pres tab to move on.
Is there a way to get the expected behavior for this control?
NOTES:
* I thought about setting focus on the close event. But if the user clicks to another control, then this could void their click. The focus should only be retained when the user successfully clicked on a date value.
* I thought about using the changed event, but I am fairly sure that fires when the user types in as well, causing unintended side effects.
* If you change step 4 to select the date by using the keyboard (pressing enter), then the focus is retained as it should be. So it seems this is possible, but just not implemented in the control.
Hello Vaccano,
Unfortunately, there is no such feature that I would suggest you.
You could contact with Sales Department (sales@jqwidgets.com) for any customizations or to make a suggestion for this feature here.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.