Results 1 to 5 of 5

Thread: textField's clearIcon doesn't show up with autocompletion

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2854 in a recent build.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    253

    Default textField's clearIcon doesn't show up with autocompletion

    If you autocomplete a textfield with browser form cache, the clearIcon on top left of the field is not activated

    browser: Chrome 18

    ST 2 & 2.0.1rc

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Using this code

    Code:
    new Ext.form.Panel({
        fullscreen : true,
        items      : [
            {
                xtype        : 'textfield',
                autoComplete : true
            }
        ]
    });
    I tested with 2.0.0, 2.0.1 RC and 2.0.1 and I always get the clearIcon to show at the right of the field. Tested with Chrome 18. How do I reproduce the behavior you are seeing?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    253

    Default

    sorry forgot
    It's when you have the field still empty, and trigger autocompletion by a double tap (on PC or tablet/phones), then the field takes the value, but the clearIcon, is not displayed

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    253

    Default

    it's probably a minor bug through, but useful, since it's freqent to use autocomplted form fields

    picture: first field filled using at least one key event
    second field, I select one autocompletion proposition, by just focusing or double tapping on field

    Screenshot.jpg

    Code:
      {
          name : 'keyword',
          label : 'Mot cl',
          autoCapitalize : false
      },
      {
          name : 'data',
          label : 'Adresse',
          autoCapitalize : true
      },

  5. #5
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159

    Default

    This was horrible to fix.

    Input's do not have a special event when the value changes for autocomplete, so we have to hack into the `input` event and work around it to only `change` when it was autocomplete'd.

    Fix will be in the next beta of Sencha Touch 2.1. Let us know if you have any issues.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •