Results 1 to 3 of 3

Thread: Combobox Boxselect.js loses focus when used with typeahead ExtJS4.2.3

  1. #1
    Sencha User
    Join Date
    Oct 2014
    Location
    USA
    Posts
    15
    Answers
    2

    Default Combobox Boxselect.js loses focus when used with typeahead ExtJS4.2.3

    According to the example given at http://kveeiv.github.io/extjs-boxsel...boxselect.html, using boxselect, one can have multiselect as well as typeahead (if turned on). I had to modify the code but even then, the combobox loses focus intermittently when typeahead is used with mutliselect->

    Ext.define('Test.MultiSelectComboBox', {
    extend: 'Test.Extensions.BoxSelect',
    padding: '10 10 10 10',
    anchor: '100%',
    queryMode: 'local',
    valueField: 'key',
    displayField: 'value',
    triggerAction: 'all',
    editable: true,
    typeahead: true,
    listeners: {
    specialkey: function(field, e){
    field.focus();
    }
    }
    });

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    The user extension is outside the scope of Sencha support. You may need to reach out to the original author directly.

    ExtJS 5.x introduces the tagfield, but is not planned for 4.x
    http://dev.sencha.com/ext/5.0.1/exam...sink/#form-tag

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    Donetsk, Ukraine
    Posts
    2

    Default

    I could solve the similar issue with focus be two actions:


    Set "selectOnFocus: false"


    Update doRawQuery.
    doRawQuery: function() {
    var me = this;
    ...
    me.inputEl.focus();
    }


    If you have your overridden version (I believe you should to not change original plugin), you can do it this way to not duplicate the logic:
    doRawQuery: function() {
    var me = this;
    me.callParent(arguments);
    me.inputEl.focus();
    }

Posting Permissions

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