EasyUI Forum
April 29, 2024, 06:13:28 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combobox limitToList conflict  (Read 3963 times)
juancitop
Newbie
*
Posts: 22


View Profile Email
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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');
}
}
})
Logged
juancitop
Newbie
*
Posts: 22


View Profile Email
« Reply #2 on: June 01, 2018, 07:50:03 AM »

Excelent !! Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!