I'm seeing the following behavior in Safari 5.1.7 and Chrome 21.0.1180.89m on Windows7. IE 8 and Firefox 11 do not have this problem.
I can enter appropriate values into a masked TextItem. But when I try to backspace them out, only the last character is removed. If I place the cursor anywhere other than after the value, the backspace key behaves like the delete key (removes the char following the cursor).
Steps to recreate the problem:
1. Have a TextItem that is masked to allow the input of 6 digits
2. Enter "123456". Value appears.
3. Hit backspace. "6" is removed.
4. Hit backspace again. Nothing is removed.
5. With either the mouse or keyboard, position the cursor between the "2" and the "3".
6. Hit backspace. The "3" is removed, not the "2".
Sample code:
mainLayout is simply a VLayout. It doesn't matter whether I setMaskPromptChar(""), but this illustrates my typical usage.
I'm using SmartGWT EE 3.1d nightly build from 9/11/2012, which reports the following on the console:
SNAPSHOT_v8.3d_2012-09-11/Enterprise Deployment (built 2012-09-11)
I have reports of the same behavior in Safari 5.1.7 on Mac OS X 10.6.8.
Is this a known issue? Is there a workaround?
Thanks.
I can enter appropriate values into a masked TextItem. But when I try to backspace them out, only the last character is removed. If I place the cursor anywhere other than after the value, the backspace key behaves like the delete key (removes the char following the cursor).
Steps to recreate the problem:
1. Have a TextItem that is masked to allow the input of 6 digits
2. Enter "123456". Value appears.
3. Hit backspace. "6" is removed.
4. Hit backspace again. Nothing is removed.
5. With either the mouse or keyboard, position the cursor between the "2" and the "3".
6. Hit backspace. The "3" is removed, not the "2".
Sample code:
Code:
DynamicForm aForm = new DynamicForm(); TextItem notMasked = new TextItem(); notMasked.setTitle("Not Masked"); TextItem isMasked = new TextItem(); isMasked.setTitle("Masked"); isMasked.setMask("######"); isMasked.setMaskPromptChar(""); aForm.setFields(notMasked, isMasked); mainLayout.addMember(aForm);
I'm using SmartGWT EE 3.1d nightly build from 9/11/2012, which reports the following on the console:
SNAPSHOT_v8.3d_2012-09-11/Enterprise Deployment (built 2012-09-11)
I have reports of the same behavior in Safari 5.1.7 on Mac OS X 10.6.8.
Is this a known issue? Is there a workaround?
Thanks.
Comment