[TIMOB-19606] TextArea wont stay focussed in Android (Lollipop)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-11-20T18:59:54.000+0000 |
Affected Version/s | Release 4.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | area, focus, keyboard, row, table, text, textarea, |
Reporter | adam kearsley |
Assignee | Unknown |
Created | 2015-03-06T11:55:02.000+0000 |
Updated | 2019-11-20T18:59:54.000+0000 |
Description
Adding a textArea as normal to a Table Row.
When i click into the text area, the keyboard is shown, with the spelling toolbar.
Then the toolbar quickly hides and the textArea appears to have lost focus but keyboard is still shown.
The text are is not updated when i type.
If i very quickly type as i click the text area, it stays focussed.
When i click the textArea i get this in my Console window. [INFO] : I/InputDispatcher( 899): Delivering touch to : action: 0x0, toolType: 1 [INFO] : I/InputDispatcher( 899): Delivering touch to : action: 0x1, toolType: 1
HI, Would you please provide a test case to reproduce your problem. Here is the guide about how to create a test case for bug reporting. [http://docs.appcelerator.com/titanium/3.0/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-CreatingaTestCase] Regards, Shuo
Hi Shuo, A test case is most likely not relevant. This bug appears to only happen when you add a Ti.UI.createTextArea to a TableViewRow. If you simply create a basic table, add a row with a TextArea within the row, the TextArea cannot be focussed. There are no other complexities. I also tried adding the TextArea to a View and then added the View to the TableViewRow and this did not fix the issue. I have aslo noticed that touch events are not fired on rows containing switched either, but this was fixed by adding the switches (checkbox) to a View and then onto a row. I am using a table with multiple sections, but i don't think that the sections are causing the issue. Ti SDK: 3.5.0GA Platform: Android 5.0 Lollipop Device: Samsung Galaxy Note3. var row = Ti.UI.createTableViewRow({ height: 110, color: '#000', font : { fontSize : 24, fontFamily: "Monda-Regular", } }); var rowView = Ti.UI.createView({ height: Ti.UI.FILL, width: Ti.UI.FILL }); var rowTextInput = Ti.UI.createTextArea({ borderWidth: 1, borderColor: '#000', borderRadius: 5, color: '#000', width: '90%', height : 100, bottom: 5, top:5 }); rowView.add(rowTextInput); row.add(rowView); section.add(row);
Cannot Reproduce Axway Appcelerator Studio, build: 5.1.4.201909061933 macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.1 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.2.1.GA Pixel 3 Android API 29