Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8015] Android: TextArea - Need to drag from TextArea in order to make soft keyboard appear

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-07-11T16:16:27.000+0000
Affected Version/sRelease 2.0.0, Release 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, module_textarea, qe-testadded
ReporterWilson Luu
AssigneePing Wang
Created2012-03-14T15:01:34.000+0000
Updated2017-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

Comments

  1. Ping Wang 2012-07-05

    Put this ticket on hold until we have a parity discussion on event bubbling.
  2. Ping Wang 2012-07-11

    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.
  3. Neeraj Gupta 2012-07-12

  4. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source