Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24469

iOS: Dismiss keyboard on drag / interactively in ScrollView does not working if Textfield is outside ScrollView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Not Our Bug
    • Affects Version/s: Release 6.0.2
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      SDK 6.0.0, 6.0.1 and 6.0.2

      Description

      Reproduce

      1. Run the following test code

      var win = Ti.UI.createWindow();
      var scroll = Ti.UI.createScrollView({
      keyboardDismissMode: Ti.UI.iOS.KEYBOARD_DISMISS_MODE_INTERACTIVE,
      contentHeight: 1500,
      top: 40
      });
      var field = Ti.UI.createTextField({
      width: 300,
      height: 40,
      top: 0,
      backgroundColor: "white"
      });
       
      field.addEventListener("focus", function() {
      Ti.API.warn("TextField focussed!");
      });
       
      field.addEventListener("blur", function() {
      Ti.API.warn("TextField blurred!");
      });
       
      win.add(field);
      win.add(scroll);
      win.open();
      

      Problem

      The keyboard will not dismiss, if the textField is outside scrollView. Is this expected? Any solution?

      This is related to an old case https://jira.appcelerator.org/browse/TIMOB-23442 (New Feature for dismiss)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                sliang Shuo Liang
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10534
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration