Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11250] iOS: blur() callback fails to blur keyboard on textfields with custom toolbar.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-10-05T22:10:14.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sRelease 2.1.4, Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
Labelsapi, blur, ios, ios6, qe-port, toolbar
ReporterNick
AssigneeVishal Duggal
Created2012-10-01T08:36:22.000+0000
Updated2012-11-01T17:12:18.000+0000

Description

The problem does not appear on iOS5 with 2.1.2. It is only reproducable when there are many onscreen elements. blur() causes the custom toolbar to hide but focus remains on textfield with keyboard still displayed.

Attachments

FileDateSize
blur_event_fail.m4v2012-10-03T11:29:32.000+00001284842

Comments

  1. Ingo Muschenetz 2012-10-01

    Can you please provide a code snippet to test?
  2. Nick 2012-10-02

    Okay so this is proving harder to replicate in a snippet than I thought. When I simplify to the simplest use case of 1 field in a table view it works.
  3. Chris Bailey 2012-10-03

    I concur that this issue is present only on 2.1.3 RC2, as I am experiencing the same problem. It appears to work properly on 2.1.3 RC1 and 2.1.2. I'm having the same difficulty as Nick to get a code snippet since it only occurs on my most complex of projects.
  4. Zhenya Kogan 2012-10-03

    Same problem here. Keyboard slides down, than back up.
  5. Ingo Muschenetz 2012-10-03

    Could someone attach a video of the problem? Does it appears if you try the latest 2.1.X version from the CI server (we've fixed a few remaining issues there): http://builds.appcelerator.com.s3.amazonaws.com/index.html
  6. Nick 2012-10-03

    This is a video of the blur event firing but not blurring the keyboard.
  7. Nick 2012-10-03

    I've just uploaded a video from a real live app that is displaying this behaviour. When the test button is click, the event listener, animates in another view, and blurs the selected text field (actually fires blur on all the text fields). As you can see the keyboard remains, but the toolbar disappears. Also, in the second part of the video, I show that even though the blur event is called, typing on the keyboard continues to populate the field. I have placed debug logging statements and can see the all the events firing correctly, focus, blur, change.
  8. Nick 2012-10-03

    I have just tested with mobilesdk-2.1.3.v20121002161610-osx.zip (r15997d0c) and the problem still persists.
  9. Ingo Muschenetz 2012-10-03

    We still can't reproduce the problem. Can anyone post a longer code snippet that demonstrates the problem? You can also post something privately or email it to me at ingo [at] appcelerator.com if it is sensitive.
  10. Zhenya Kogan 2012-10-04

    No longer a problem on my end. Just installed 2.1.3 GA. I did have to create a new project from scratch though and manually move all Resources in order to get 2.1.3 GA to be used, otherwise it seemed to be stuck on RC2 even when I manually emptied the build/iphone/ folder, changed the build path, and tiapp.xml.
  11. Nick 2012-10-05

    Problem still appears for me in 2.1.3GA. Ingo, I will email you some code.
  12. Mitchell Amihod 2012-10-05

  13. Vishal Duggal 2012-10-05

    Yup. That is the case. Setting up PR now top fix the tableView issue.
  14. Vishal Duggal 2012-10-05

    Pull pending https://github.com/appcelerator/titanium_mobile/pull/3118
  15. Vishal Duggal 2012-10-05

    PR for 2_1_X https://github.com/appcelerator/titanium_mobile/pull/3119
  16. Nick 2012-10-07

    Tested with mobilesdk-2.1.4.v20121005153115 (r61edac43) and it is resolved.
  17. Ingo Muschenetz 2012-10-31

    Looks like this was not marked as resolved for 2.1.4. Corrected that.
  18. Natalie Huynh 2012-11-01

JSON Source