Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: Release 3.2.3
-
Fix Version/s: Release 3.1.0, 2013 Sprint 04 API, 2013 Sprint 04, Release 5.0.0
-
Component/s: Android
-
Environment:
-Android 2.2 emulator
-Titanium Mobile SDK 2.1.4.GA
-Titanium Studio 2.1.2.201208301612
-
Story Points:3
-
Sprint:2015 Sprint 17 SDK
Description
Problem
When the keyboardType propery of a TextField is set to Ti.UI.KEYBOARD_DECIMAL_PAD and autocorrect is set to false, the decimal point is not allowed to be entered into the textfield. This leaves no way to enter dollar amounts without using the default keyboard, which allows any character, and is therefore not appropriate.
Expected Behavior
autocorrect should not be interfering with numbers in the text field.
Actual Behavior
When auto correct is set to false The "numbers and punctuation" keyboard appears, but clicking on the decimal point has no effect.
Testcase
app.js
var win = Ti.UI.createWindow({
|
backgroundColor : 'white'
|
});
|
|
var textField = Ti.UI.createTextField({
|
borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
|
color : '#336699',
|
keyboardType : Ti.UI.KEYBOARD_DECIMAL_PAD,
|
returnKeyType : Ti.UI.RETURNKEY_DEFAULT,
|
autocorrect : false,
|
textAlign : 'right',
|
width : '50%'
|
});
|
|
win.add(textField);
|
win.open();
|