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

keyboardToolbar of textField not being displayed on textField.focus()

    Details

      Description

      The Keyboard Toolbar on top of the key board does not appear once the textField is blurred and then re focussed. This works fine on 2.1.0, 2.1.1, 2.1.2 GAs.

      Steps to reproduce:

      1. Load the app with below app.js
      2. Make sure the app on Ti SDK 2.1.3GA
      3. Enter a value greater than 10.
      4. Click on the 'button'

      Actual Result: The Keyboard toolbar just disappears.

      Expected Result: The Keyboard toolbar should not disappear like on 2.1.2 SDK.

      app.js:

      var  win = Titanium.UI.createWindow({
                          backgroundColor:'white',
                          title:'window',
                          barColor:'#ff7b01',
                          top:0
                      });
       
      var b = Titanium.UI.createButton({
              title:'Button',
              style:Titanium.UI.iPhone.SystemButtonStyle.DONE
          });
          b.addEventListener('click',function(){
              txtField.blur();
          })
          var flexSpace = Titanium.UI.createButton({
              systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
          });
      var txtField = Titanium.UI.createTextField({
                  color : '#ff7c00',
                  font : {
                      fontSize : 16,
                      fontWeight : 'bold',
                      fontFamily : 'Helvetica Neue'
                  },
                  top : 19,
                  textAlign : 'right',
                  height : 50,
                  left:'65%',
                  right : '10%',
                  keyboardType : Titanium.UI.KEYBOARD_NUMBER_PAD,
                  returnKeyType : Titanium.UI.RETURNKEY_DEFAULT,
                  borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
                  keyboardToolbarColor:'#898989',
                  keyboardToolbar:[flexSpace,b,flexSpace]
              });
      txtField.addEventListener('blur',function(e){
          if(e.value > 10){
              txtField.value = '';
              /*setTimeout(function(){
                  txtField.focus()},1000)*/
              txtField.focus();
          }
       
      })
       
      win.add(txtField);
       
       
      win.open()
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              aakkinepally Amuktha Akkinepally
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration