Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25525] Android: Textfield focus issue with multiple textfields

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-11-17T20:39:18.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.0.0
ComponentsAndroid
LabelsTextArea, TextField, android, internal, qe-7.0.0
ReporterLokesh Choudhary
AssigneeJoshua Quick
Created2017-11-17T02:35:59.000+0000
Updated2017-11-20T21:41:26.000+0000

Description

Steps to reproduce:

1. Use the code below in your app.js:
var win = Ti.UI.createWindow({backgroundColor : 'gray', layout: 'vertical'});
var tf = Ti.UI.createTextField({
	value: 'aSDAsdasDASDasdasDasdaS',
	width: Ti.UI.SIZE
});

var tf1 = Ti.UI.createTextField({
	top: 40,
	value: 'aSDAsdasDASDasdasDasdaS',
	width: Ti.UI.SIZE
});
win.add(tf);
win.add(tf1);
win.open();
2. Build for android device/emulator. 3. Let the app launch. 4. You will see 2 textfields with value. 5. Click on the 2nd textfield.

Actual Result:

1. Notice that the second textfield does not get the focus. You can see the cursor for a second & disappear. 3. Clicking again on the 2nd textfield get the focus. 2. Clicking on the first textfield gets the focus & the soft keyboard pops up.

Expected Results:

1. Each textfields should get the focus clicking the first time.

Comments

  1. Joshua Quick 2017-11-17

    This bug can happen with TextAreas too. This is a regression that was introduced in 7.0.0 before the release candidate. (Was never introduced to customers.)
  2. Joshua Quick 2017-11-17

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9614
  3. Lokesh Choudhary 2017-11-20

    Verified the fix in SDK 7.0.0.v20171117152921. Closing.

JSON Source