[CLOSED] Combobox doesn't display list after tab select and then backspace to beginning

  1. #1

    [CLOSED] Combobox doesn't display list after tab select and then backspace to beginning

    Issue:
    Combobox doesn't display list after tab select and then backspace to beginning.

    Configuration:
    Combobox with remote look up as in the demo here https://examples1.ext.net/#/Form/Com...Custom_Search/

    Expected:
    When you enter a value after tab selecting the value from the list and then using backspace to remove all characters, it is expected that the dropdown list will display after you begin typing

    Actual:
    The drop downlist does not display but the XHR fires and returns.

    To Reproduce:
    Open demo page
    https://examples1.ext.net/#/Form/Com...Custom_Search/

    1.Enter value Tril to pull up Trillium
    2.Press tab to select the value
    3.hit backspace until all chars are removed from field
    4. begin typing
    Last edited by Daniil; Apr 03, 2014 at 11:31 PM. Reason: [CLOSED]
  2. #2
    Hi @jlosi,

    It is related to this one:
    http://forums.ext.net/showthread.php...l=1#post127951

    Please try this override:
    Ext.form.ComboBox.prototype.initEvents = Ext.form.ComboBox.prototype.initEvents.createSequence(function () {
        this.keyNav.tab = Ext.emptyFn
    });
    
    Ext.form.ComboBox.override({
        checkTab : function (e, me) {
            if (!e.getKey) {
                var t = e;
                e = me;
                me = t;
            }
                    
            if (e.getKey() === e.TAB) {
                if (this.isExpanded()) {
                    this.onViewClick(false); 
                    return;
                }
                
                if (!this.inEditor) {
                    this.triggerBlur();
                }
            }
        }
    });
  3. #3
    it's not related because it is reproducible on the demo/sample for the ComboBox overview which is not my code at all :) I will look at your override when I get a moment. :)
  4. #4
    Quote Originally Posted by jlosi View Post
    it's not related because it is reproducible on the demo/sample for the ComboBox overview which is not my code at all :)
    I would still say it is related, because the problem is the same - a ComboBox doesn't blur on Tab, but it should. Anyway, you don't need this behavior.
  5. #5
    I misunderstood you. I thought perhaps you meant that my plugin was causing the issue. I integrated your override into the plugin and it solved the problem.

Similar Threads

  1. Replies: 19
    Last Post: Jan 05, 2016, 11:43 PM
  2. Replies: 2
    Last Post: Sep 15, 2014, 2:58 PM
  3. Replies: 6
    Last Post: Feb 21, 2014, 4:16 AM
  4. [CLOSED] ComboBox: search not necessary at beginning
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 06, 2012, 12:16 PM
  5. [CLOSED] MiniListWidth doesn't exist within combobox list config
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 19, 2012, 5:09 PM

Tags for this Thread

Posting Permissions