Hello,
I think there is a bug in DateItem using a TextField with a mask: when the cursor is at the end of the text. When I press the delete key, an additionnal underscore appears at the end of the mask and the Date is not parseable anymore. This happens when there is an input or not ( "17/05/2013" => "17/05/2013_" or "__/__/____" => "__/__/_____").
From this point, I can't suppress the unnecessary undercore, so I can't get a valid input anymore.
There is a quickstart:
I attached some attachments to this post:
I'm using SmartGWT 3.0p (March 4th 2013) / GWT 2.4.0, I experience this issue using IE9, FF 18.0.2 and Chrome 27 (both Linux and Windows). Actually, we have encountered this issue for a long time: it was already buggy with SmartGWT 2.1 / GWT 2.0.0 and older browsers.
I hope this post is clear enough. Thank you.
I think there is a bug in DateItem using a TextField with a mask: when the cursor is at the end of the text. When I press the delete key, an additionnal underscore appears at the end of the mask and the Date is not parseable anymore. This happens when there is an input or not ( "17/05/2013" => "17/05/2013_" or "__/__/____" => "__/__/_____").
From this point, I can't suppress the unnecessary undercore, so I can't get a valid input anymore.
There is a quickstart:
Code:
DateItem dateItem = new DateItem(); dateItem.setTitle("Date item test"); dateItem.setUseTextField(true); dateItem.setUseMask(true); dateItem.setEnforceDate(true); dateItem.setDateFormatter(DateDisplayFormat.TOEUROPEANSHORTDATE);
- dateItem1.png: DateItem
- dateItem2.png: focused DateItem (mask : __/__/____)
- dateItem3.png: Picked date (17/05/2013)
- dateItem4.png: After delete key pressed (17/05/2013_), does not valide / parse anymore
I'm using SmartGWT 3.0p (March 4th 2013) / GWT 2.4.0, I experience this issue using IE9, FF 18.0.2 and Chrome 27 (both Linux and Windows). Actually, we have encountered this issue for a long time: it was already buggy with SmartGWT 2.1 / GWT 2.0.0 and older browsers.
I hope this post is clear enough. Thank you.
Comment