EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: juancitop on May 22, 2018, 12:00:37 PM



Title: Combobox limitToList conflict
Post by: juancitop on May 22, 2018, 12:00:37 PM
I need some help ...

If I extend de combobox like this:

Code:
$.fn.combobox.defaults = $.extend({}, $.fn.combobox.defaults, {
selectOnNavigation: true,

inputEvents: $.extend({}, $.fn.combo.defaults.inputEvents, {
keyup: function(e) {
if (e.keyCode == 40) {
$(e.data.target).combobox('showPanel');
}
}
})
});

.. the limitToList stop working.

Thanks in advance.


Title: Re: Combobox limitToList conflict
Post by: stworthy on May 23, 2018, 02:45:30 AM
Please use this code instead.
Code:
$.extend($.fn.combobox.defaults.inputEvents, {
keyup: function(e){
if (e.keyCode == 40) {
$(e.data.target).combobox('showPanel');
}
}
})


Title: Re: Combobox limitToList conflict
Post by: juancitop on June 01, 2018, 07:50:03 AM
Excelent !! Thanks.