Results 1 to 2 of 2

Thread: Local filter on comboboxes bug

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Feb 2015

    Default Local filter on comboboxes bug

    Ext version tested:

    Ext 5.1.0

    Browser versions tested against:



    On combo boxes, when using a local filter, there is a bug if you backspace to an empty string (or highlight and delete all). When you expand the combo box again the previous filter remains.

    Steps to reproduce the problem:

    Created a fiddle here:

    (Note the fiddle was taken from another and edited so may contain some unnecessary code)

    To see the problem:

    Open combo drop down to see there are 5 records.
    Type "a" into the combo.
    Hit backspace.
    Expand the combo.
    There are now only 4 records even though all 5 should be visible.

    The above also happens if you highlight all the text and delete it. Have a fix which I'll include but unsure if it is the best solution. The code is taken from the method doLocalQuery and I've bolded the change.

            // Querying by a string...
            if (queryString || queryString === "") {
                filter = me.queryFilter = new Ext.util.Filter({
                    id: + '-filter',
                    anyMatch: me.anyMatch,
                    caseSensitive: me.caseSensitive,
                    root: 'data',
                    property: me.displayField,
                    value: me.enableRegEx ? new RegExp(queryString) : queryString

  2. #2
    Sencha User
    Join Date
    Feb 2013


    Thanks for the report. This has been fixed for 5.1.1, and tests as expected using the latest nightly.

Similar Threads

  1. How to filter two comboboxes (cities and counties) in EditorGridPanel?
    By 1982mihai in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 7 Feb 2011, 2:45 AM
  2. Filter the Grid XML on the basis of values selected in ComboBoxes
    By John Mathew in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 11 Jun 2009, 11:48 AM
  3. Sort-of Feature Request: Make local ComboBoxes simpler
    By jove4015 in forum Community Discussion
    Replies: 7
    Last Post: 7 Apr 2008, 9:32 AM
  4. two depended comboboxes with local JsonStore
    By mdissel in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 26 Jul 2007, 6:41 AM
  5. Can't filter a local combobox.
    By cwolves in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 18 Jun 2007, 6:17 AM

Posting Permissions

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