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

iOS: onBlur event on Textfield fired twice when click return button on keyboard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      SDK 3.2.3
      ALLOY 1.3.1
      IOS 7.1

    • Sprint:
      2015 Sprint 21 SDK

      Description

      onBlur event on Textfield fired twice when click return button on key borad.

      Here is the latest test case for this problem.

      var win = Ti.UI.createWindow({
          backgroundColor : 'white'
      });
       
      var plainTemplate = {
          childTemplates : [{
              type : 'Ti.UI.TextField',
              bindId : 'button',
              properties : {
                  width : '80dp',
                  height : '30dp',
                  right : '10dp',
                  value : "122222",
                  borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
              },
              events : {
                  blur : function() {
                      alert("???");
                  }
              }
          }]
      };
       
      var listView = Ti.UI.createListView({
          templates : {
              'plain' : plainTemplate
          },
          defaultItemTemplate : 'plain'
      });
       
      var data = [];
      for (var i = 0; i < 10; i++) {
          data.push({
              rowtitle : {
                  text : 'Row ' + (i + 1)
              },
              properties : {
                  itemId : 'row' + (i + 1),
                  accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE
              }
          });
      }
       
      var section = Ti.UI.createListSection({
          items : data
      });
      listView.sections = [section];
      win.add(listView);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              apetkov Angel Petkov
              Reporter:
              jialhe85@gmail.com David He
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration