EasyUI Forum

General Category => Bug Report => Topic started by: chrwei on August 15, 2013, 08:02:56 AM



Title: feature request: combobox defaults
Post by: chrwei on August 15, 2013, 08:02:56 AM
I'd like to request that the autocomplete feature default to case insensitive.  I feel it makes more sense in the way people expect these things to work.


Title: Re: feature request: combobox defaults
Post by: stworthy on August 16, 2013, 06:44:35 PM
Please override the $.fn.combobox.defaults.filter function to do so.
Code:
<script>
  $.fn.combobox.defaults.filter = function(q){
var opts = $(this).combobox('options');
return row[opts.textField].toLowerCase().indexOf(q.toLowerCase()) == 0;
  };
</script>


Title: Re: feature request: combobox defaults
Post by: chrwei on August 19, 2013, 02:05:13 PM
I understand how to override it.  I think it would benefit the project in general to make this the default behavior.