[TIMOB-17229] Android TextArea in DataBinding Calls Blur after Focus when Focusing
| GitHub Issue | n/a |
| Type | Bug |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | android |
| Reporter | Jacob Parker |
| Assignee | Unknown |
| Created | 2014-06-17T15:20:50.000+0000 |
| Updated | 2018-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
| File | Date | Size |
| test.tar.gz | 2014-06-17T15:20:50.000+0000 | 1315601 |
Hi, Thank you for your ticket. I will be forward ticket to our engineer team. Regards, Shuo
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();