Closed mikejed closed 12 months ago
@mikejed can you confirm this is still an issue. I'm not able to reproduce. It's possible we have updated the JS control since you opened this.
Confirmed still an issue in v15.1 (today's public demo environment). Here's a video. Between 6 and 8 seconds I'm clicking on either side of the colon and it's highlighting the full hour or minute values as expected. But if I change the 2 to 10 and then click on either side of the colon, the wrong characters are highlighted (shown between 10 and 15 seconds).
Talked to Michael and we agreed this was more of an occasional annoyance than an issue. Checked to make sure the jquery component is the latest (it is) so closing.
Prerequisites
Description
When changing the time listed in a time picker control, changing the number of digits in the hour segment causes the minute segment to be very difficult to edit
Steps to Reproduce
Expected behavior:
The beginning offset of the minute portion of the string should be recalculated based on the new length of the hour string, so the two-digit minutes are highlighted
Actual behavior:
The beginning offset of the minute portion of the string from before you changed the hour value is maintaned. So either the second number of the minute and the following space character are highlighted, or the colon and the first number of the minute are (depending on whether you added length to the time string or reduced it). Attempting to change the minutes are very unwieldy, until you blur focus from that control by clicking off of it, and then re-focusing on the control. (Selecting the minutes portion takes two clicks again after the blur, but this time will highlight the correct characters since you haven't changed the length).
Having changed the existing hour value of
12
to a new value of6
then trying to select the minute:![https://user-images.githubusercontent.com/6932047/36003267-709f85b6-0cea-11e8-8915-50e6515645cb.png image]()
Having changed the existing hour value of
6
to a new value of12
then trying to select the minute:![https://user-images.githubusercontent.com/6932047/36003305-9e1cb69e-0cea-11e8-93ad-1bb53430b11f.png image]()
Additionally, using the arrow keys (up and down) to edit the minutes value while the incorrect characters are selected (in either of the configurations shown above) causes the hour string to reset to the original value.
Versions