|
Rank: Advanced Member Groups: Member
Joined: 12/19/2010 Posts: 47
|
I use the datepicker with a time only mask: "hh:mm tt". This is for a time only field. When the user enters a time and then changes their mind and decides they no longer want a value in the time field, it is impossible to clear the old time. You can blank out the time components in the field, but when you tab to the next field the time that they entered is restored in the field. I noticed that this behavior also happens on your demonstration. Although I could not find a time only demonstration. If you enter a date into a date and time field and try and clear just the time component, it restores it as soon as the field loses focus. Needless to say this is very undesirable behavior and I am wondering if you have any suggestions for how I may allow my users to clear the time only field that uses the datepicker control?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Thanks for posting in the forum. This appears to be a problem. The best way to clear the DatePicker is to call setSelectedDate(null) on the DatePicker to clear it. However even so the DatePicker will still revert to 12:00 AM when it loses focus/regain focus. We will look into this and see if we can support clearing the value by directly clearing the textbox.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/19/2010 Posts: 47
|
Any status on clearing the time control ... I also have a date control with a bug. Please check my post from today. I am trying to decided if these controls are essentially (pardon the pun) unusable?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
This is just to let you know that we already have a build that has already fixed this problem and we will post it either today or tomorrow.
Thanks!
|
|