Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4361] Android: autocorrect property has no effect in TextField

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-16T16:29:13.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-24, Release 1.7.2, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterBill Dawson
AssigneeBill Dawson
Created2011-06-10T16:32:28.000+0000
Updated2011-07-11T15:33:20.000+0000

Description

Steps to recreate

* New project with this app.js:

Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({  
    title:'Test',
    backgroundColor:'#000',
	exitOnClose: true
});

var tf, btn;
win.add(tf = Ti.UI.createTextField({
	backgroundColor: 'blue',
	color: 'yellow',
	left: "40dp",
	right: "40dp",
	top: "100dp",
	height: "50dp",
	autocorrect: false
}));
win.add(btn = Ti.UI.createButton({
	top: "150dp",
	title: "autocorrect is: " + tf.autocorrect,
	left: "40dp",
	right: "40dp",
	height: "40dp"
}));
btn.addEventListener('click', function(){
	tf.autocorrect = !tf.autocorrect;
	btn.title = "autocorrect is: " + tf.autocorrect;
});

win.open();
* Tap in the text field and type something. Suggestions will come up and if you type a space the suggestion will be taken automatically, even though autocorrect is false. Toggling autocorrect has no effect.

Comments

  1. Bill Dawson 2011-06-14

    When the fix is available, please use the Kitchen Sink TextField - "The REst" test for testing instead of my failcase (or in addition to my failcase). This is because we want to test the combination of input flags (capitalization with correction, etc) and my failcase is only testing correction on/off
  2. Don Thorp 2011-06-16

    New ticket being opened up for Galaxy Tab 2.2
  3. Don Thorp 2011-06-23

    merged to 1_7_X
  4. Eric Merriman 2011-07-08

    Seeing some strange behavior in KS "the rest" involving landscape text editing and the characters not showing up until space is pressed. Sent email to Bill and awaiting reply for resolution.
  5. Eric Merriman 2011-07-11

    Verified fixed with "the rest" test in Kitchensink (master) as well as smaple code in SDKs 1.7.2.v20110711123039 r586e5bf5 and 1.8.0.v20110711124239 r12e5c96a on Droid 1 2.2.1, Nexus S 2.3.4,and Xoom 3.1.

JSON Source