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?
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.