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

iOS7: KeyboardToolbar disappears when toggling between textfields

    Details

      Description

      KeyboardToolbar of textfields disappears while toggling between the textfields.

      Steps To Reproduce:

      1. Copy and paste the below code in newly created Titanium project:

       
      var win = Ti.UI.createWindow({
      	backgroundColor:'white'
      });
       
       var previous = Titanium.UI.createButton({
      	title :'Previous',
          style :Titanium.UI.iPhone.SystemButtonStyle.DONE,
      	});
       
      var next = Titanium.UI.createButton({
      	title :'Next',
          style :Titanium.UI.iPhone.SystemButtonStyle.DONE,
      	});
       
      var username = Titanium.UI.createTextField({
      			width : '88.1%',
      			height : '8.9%',
      			hintText : 'NT USERNAME',		
      			top : 50,
      			borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
      			autocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
      			keyboardToolbar : [previous, next]
      		});
      var password = Titanium.UI.createTextField({
      			width : '88.1%',
      			height : '8.9%',
      			hintText : 'NT PASSWORD',		
      			top : 100,
      			borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
      			passwordMask : true,
      			autocapitalization : Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,
      			keyboardToolbar : [previous, next]
      		});
          
       previous.addEventListener('click', function (e) { 
       	username.focus(); 
       	
       	
      });
       next.addEventListener('click', function (e) {
       	 password.focus(); 
       	 	
       	});
       
       username.addEventListener('focus', function (e) {
       	  
               previous.enabled=false; next.enabled=true; 
                
       });
       
        password.addEventListener('focus', function (e) { 
               previous.enabled=true; next.enabled=false;
              
       
       });
      	
      win.add(username);
      win.add(password);
       
      win.open();
      

      2. Run the app on iOS7 and toggle between textfields.

      Note :This behavior is specifically on iOS7. This issue can not be seen on iOS6 and SDK 3.1.0.Find the attachment of blank KeyboardToolBar after toggling between textFields.

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              mpathak Meenakshi Pathak
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration