[TIMOB-8015] Android: TextArea - Need to drag from TextArea in order to make soft keyboard appear
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-11T16:16:27.000+0000 |
Affected Version/s | Release 2.0.0, Release 2.1.0 |
Fix Version/s | n/a |
Components | Android |
Labels | api, module_textarea, qe-testadded |
Reporter | Wilson Luu |
Assignee | Ping Wang |
Created | 2012-03-14T15:01:34.000+0000 |
Updated | 2017-03-09T23:33:12.000+0000 |
Description
Steps to reproduce:
1. Run the following app.js:
var l1 = Titanium.UI.createLabel({
height:Ti.UI.SIZE,
width:182,
font:{fontSize:12,fontFamily:'ARIAL', fontWeight:'solid'},
color:'#000',
textAlign:'left',
borderWidth:0,
top:20,
borderWidth:2,
borderColor:'#bbb',
borderRadius:10
});
var tf = Titanium.UI.createTextArea({
height:55,
width:200,
font:{fontSize:12,fontFamily:'ARIAL', fontWeight:'solid'},
color:'#000',
textAlign:'left',
color:'#777',
paddingLeft:0,
borderWidth:0,
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE,
top: 100,
borderWidth:2,
borderRadius:10
});
tf.scrollable = false;
tf.addEventListener('change',function(e)
{
l1.text = tf.value;
});
var win1 = Titanium.UI.createWindow({backgroundColor:'white'});
win1.add(l1);
win1.add(tf);
win1.addEventListener('click', function(e){
tf.blur();
});
win1.open();
2. Press on textArea
*Actual:* Soft keyboard does not come up
3. Next, press on textArea, drag down, and release
*Actual:* Soft keyboard appears
*Expected:* Soft keyboard should appear after pressing on textArea
*Note:*
* If tf.blur() is comment out, soft keyboard comes up fine
* KS > Controls > Text Area > Basic works as expected
* Code works fine in iOS
Put this ticket on hold until we have a parity discussion on event bubbling.
The click event should bubble up to the window. So Android behaves correctly in this test case. iOS has a different behavior because the click event for TextArea does not bubble up and this is a bug on iOS.
Closing ticket as invalid.