Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17229] Android TextArea in DataBinding Calls Blur after Focus when Focusing

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid
ReporterJacob Parker
AssigneeUnknown
Created2014-06-17T15:20:50.000+0000
Updated2018-02-28T20:03:31.000+0000

Description

Create a textarea from a dataCollection, as demonstrated. When the textarea is focused, the focused and blurred events are both called. The textarea isn't actually blurred, although this bug can lead to needing to use hacks to fix it.

Attachments

FileDateSize
test.tar.gz2014-06-17T15:20:50.000+00001315601

Comments

  1. Shuo Liang 2014-06-27

    Hi, Thank you for your ticket. I will be forward ticket to our engineer team. Regards, Shuo
  2. Shuo Liang 2014-06-27

    Test with different situation. Not just using Databinding will happen this problem. Using textarea by normal way also get this problem on Android. Additional, the problem does not only happen in Alloy project, but also happen in regular app project. Here is a simple test case:
       var win = Ti.UI.createWindow({
       	backgroundColor:"white"
       });
       
       var tv = Ti.UI.createTableView({});
       var tableData = [];
       
       var row1 = Ti.UI.createTableViewRow({});
       var area1 = Ti.UI.createTextArea({
       	value: "test 1"
       });
       row1.add(area1);
       tableData.push(row1);
       
       area1.addEventListener("focus", function() {
       	console.log('focused test 1');
       });
       area1.addEventListener("blur", function() {
       	console.log('blurred from test 1');
       });
       
       
       var row2 = Ti.UI.createTableViewRow({});
       var area2 = Ti.UI.createTextArea({
       	value: "test 2"
       });
       row2.add(area2);
       tableData.push(row2);
       
       area2.addEventListener("focus", function() {
       	console.log('focused test 2');
       });
       area2.addEventListener("blur", function() {
       	console.log('blurred from test 2');
       });
       
       
       tv.setData(tableData);
       win.add(tv);
       win.open();
       

JSON Source