When a textfield is added to a tableview and when the height of the textfield is animated upon focus, the keyboard appears and immediately disappears. This would happen if you click on the textfield about 2-3 times and clicking/focusing the textfield several times would cause the keyboard to flicker.
This is a regression as the keyboard appears properly with SDK 3.4.1 and it does not flicker if the textfield is focused continuously. However the error message indicated in step 2 under actual results is still reproducible in 3.4.1
Steps to reproduce:
1. Run the attached app.js
2. focus on the textfield
3. focus on the textfield several times continuously
Actual Results:
2. Following error message is displayed:
[ERROR] : focus 30
[ERROR] : {
[ERROR] : bubbles = 0;
[ERROR] : cancelBubble = 0;
[ERROR] : source = "[object TiUITextField]";
[ERROR] : type = focus;
[ERROR] : value = "";
[ERROR] : }
and keyboard disappears immediately
3. Keyboard flickers.
Expected Results:
2. No error message and keyboard should stay unless 'return' key is pressed.
3. Keyboard should not flicker
We need to find what may have caused this. Look for changes in TextWidgetProxy.
Race condition due to this commit https://github.com/appcelerator/titanium_mobile/commit/970d6b540e6bc6e833844f78a324fe41db8f09fe
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6419 3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6420
Verified fixed using: Titanium SDK 3.5.0.v20141208122514 Studio 3.4.1.201410281743 Xcode 6.1.1 On: iPad mini, iOS 8.1 iPhone 6, iOS 8.2b iPhone 4S Sim, iOS 8.1