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

Android: tableView textField focus is lost while typing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: Release 1.8.0.1, Release 2.0.0, Release 1.8.2
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android OS
      TiSDK 2.0 CI, 1.8.2, 1.8.0.1

    • Story Points:
      3

      Description

      Problem description

      TableView textField loses focus when typing in.

      Steps to reproduce

      Create a tableView and a tableViewRow with a textField.
      Click on the textField and start typing some text

      Result: after the first character, focus on the textField is lost.

      var win = Ti.UI.createWindow({
      	backgroundColor:'black'
      });
       
      var data = [];
       
      var tableview;
      var row = Ti.UI.createTableViewRow({
      	clickName: 'row'
      });
       
      var textfield = Titanium.UI.createTextField({
      	width: '80%',
      	height: 80,
      	color: '#000',
      	returnKeyType: Titanium.UI.RETURNKEY_DONE,
      	enableReturnKey: true,
      	keyboardType: Titanium.UI.KEYBOARD_ASCII,
      	autocorrect: false,
      	hintText: 'Enter text Field',
      	textAlign: 'left',
      	clearOnEdit: false,
      	borderStyle: Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
      	clearButtonMode: Titanium.UI.INPUT_BUTTONMODE_ONFOCUS,
      	leftButtonMode: Titanium.UI.INPUT_BUTTONMODE_ALWAYS
      });
       
      textfield.font = {
      	fontSize: '15sp',
      	fontFamily: 'Arial'
      };
      textfield.autocorrect = true;
      textfield.borderStyle = Titanium.UI.INPUT_BORDERSTYLE_NONE;
       
      row.add(textfield);
       
      data = [row];
      tableview = Titanium.UI.createTableView({
      	data: data,
      	rowBackgroundColor: 'white',
       
      });
      win.add(tableview);
       
      win.open();
      

      Additional notes

      Ticket associated: http://support-admin.appcelerator.com/display/APP-682796

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joshroesslein Josh Roesslein
                Reporter:
                fcasali Federico Casali
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration