var window = Ti.UI.createWindow({backgroundColor: 'white'});
window.open();
var txt1 = Ti.UI.createTextField({
top: '10',
left: '10',
right:'10',
height:'30',
color:'#336699',
borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
value: ''
});
window.add(txt1);
txt1.addEventListener('change', function(e){
Ti.API.log('change -- value : '+txt1.value+' (e.value :'+e.value+')');
alert('change -- value : '+txt1.value+' (e.value :'+e.value+')');
});
1 - Write "abcd"
Logs and alerts show :
change -- value : a (e.value :a)
change -- value : ab (e.value :ab)
change -- value : abc (e.value :abc)
change -- value : abcd (e.value :abcd)
2 - Put the cursor between "b" and "c" and press "x"
Logs and alerts show :
change -- value : abcdx (e.value :abcdx)
change -- value : abxcd (e.value :abxcd)
Pull pending https://github.com/appcelerator/titanium_mobile/pull/2577
Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120801170113 Tested with Titanium Studio: 2.1.1.201207271312 Device - Android Emulator 2.3.3,iPad Simulator (5.0), iPad 3 (5.1) Machine OS - MAC 10.7.3
Occurs on: Titanium Studio: 2.1.2.201208201549 Titanium SDK: 2.1.2.v20120821160113 Device: iPad3 (v5.1) Fixed with SDK: 2.2.0.v20120801170113
Reopening issue to add Release2.1.3 tag
Closing as fixed. Verified on: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 2.1.3.v20120928124610 Device: iPhone 4 (5.1.1), iPhone Simulator (6.0)