Combo Bug: enableFilteringMode(false) does not work properly

Test case:
Create combo box. Set enableFilteringMode(true). Create an “onOpen” even that will disable the filtering mode (ie: enableFitleringMode(false) ).

Start using the combo box by typing in values.

If/when the conditions are met in which disable the filtering mode, any options that were previously hidden/filtered prior to filtering mode being disabled remain filtered/hidden. This is due to the way that the filterSelf method works (ie: hides the individual option if it is filtered). However, the enableFilteringMode() method doesn’t unhide them when it is disabled.

Fix - add following code to enableFilteringMode:

      // ensure that all options are not hidden
      if( !this._filter )
         for(var i=0; i<this.optionsArr.length; i++)
              this.optionsArr[i].hide( false );

Can you please let me know if there is a proper way to submit these bug fixes such that future revisions will automatically have these changes incorporated in them?

Thanks,

Eric

Hello,

Why did you need to change the filtering mode?

filtering mode wasn’t designed to be changeable. The modification that you have done is correct to show all options.

Nowhere in the documentation does it indicate that filtering mode cannot/should not changed.

I am looking to change the filtering as I am looking for functionality that when you click on the drop down, that you see an unfiltered list, however, when typing, you only get the filtered list displayed. Your current implementation doesn’t allow for that out of the box.

However, by playing with the onOpen and onKeyPress and the filtering modes, I can acheive that. However, as noted in my first post, you have a bug in your filtering mode that does not properly disable the filter.

Thanks,

Eric

We will consider this issue and possibly modify enableFilteringMode mode.

I have been trying to implement the exact same functionality, as well, without success. I am glad to see I am not the only one with this problem :\

I have been trying to implement the exact same functionality, as well, without success.

You may try to apply the following:

combo.attachEvent("onOpen",function(){ this.setComboText(""); this.filterSelf(); })

Great! That does the trick. Thanks!