Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8934] Android: TextField - If autocorrect is set to false, then the decimal keyboard does not appear and user cannot use the decimal point

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-02-26T11:17:50.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.0, Release 2.0.1
Fix Version/sn/a
ComponentsAndroid
Labelsapi, module_textfield, parity, qe-and060112, qe-review, qe-testadded
ReporterWilson Luu
Assigneejithinpv
Created2012-04-30T17:05:46.000+0000
Updated2013-03-13T19:13:11.000+0000

Description

Details: When you createTextField() and set *autocorrect* to false and *keyboardType* to Ti.UI.KEYBOARD_DECIMAL_PAD, the decimal keyboard does not appear on Android devices. And, you cannot use the period as a decimal point. However, the decimal keyboard will appear on iOS devices. Steps to reproduce: 1. Launch the following code on Android:
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var textField = Ti.UI.createTextField({
	 	hintText: 'text field',
        borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
        autocorrect: false,
        keyboardType: Ti.UI.KEYBOARD_DECIMAL_PAD
});

win.add(textField);

win.open();
Actual: The decimal keyboard does not appear on Android devices and you cannot use the decimal point. See attachments. Expected: The decimal keyboard should appear on Android devices like on iOS devices. Note: * This bug is not a regression * Above code works on iOS

Attachments

FileDateSize
droid_no_decimal.png2012-04-30T17:05:46.000+000049645
ios_decimal.png2012-04-30T17:05:46.000+000028498

Comments

  1. Mukesh Gadiya 2012-06-21

    Galaxy Nexus - 4.0.4 SDK 2.1.0.v20120621132259 Studio build: 2.0.2.201205311912 V8
  2. Wilson Luu 2012-06-22

    Bug still occurs on: SDK build: 2.1.0.v20120621224153 Titanium Studio, build: 2.1.0.201206211609 Runtime: v8 Device: Droid 1 (2.2.3)
  3. jithinpv 2013-02-26

    Issue does not reproduce with sdk 3.0.2 and 3.1.0 .
  4. Olga Romero 2013-02-27

    Cannot reproduce this issue with: Tested with: Titanium Studio, build: 3.0.2.201302191606 Titanium SDK, build: 3.0.2.GA Devices: Nexus 7 Android version 4.2 GalaxyS3 Android version 4.0.4 Nexus 4 Android version 4.2
  5. Olga Romero 2013-03-04

    Tested with: Titanium Studio, build: 3.0.2.201302191606 Titanium SSDK, build: 3.1.0.v20130303194855 Device: Nexus4 Android version: 4.2 Closing as Cannot Reproduce.

JSON Source