EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: keja on May 21, 2021, 06:43:27 AM



Title: Combobox scroll bar not working in IE
Post by: keja on May 21, 2021, 06:43:27 AM
We have added a extender for combobox to clear the input text if it does not exist in the item list of combo box. It works fine in all browsers.

 $.extend($.fn.combobox.defaults.inputEvents, {
            blur: function (e) {
                $.fn.combobox.defaults.keyHandler.enter.call(e.data.target);
            },
});

Laster we observed that in Internet Explorer (any version), the scroll bar for combo box does not work. Attached is the screen shot for your reference.

If we comment the a line of code in the function, scroll bar works well. However input text wont clear if it is not in the item list of combo box.

Could you please help us to achieve both ?
 


Title: Re: Combobox scroll bar not working in IE
Post by: jarry on May 23, 2021, 07:22:17 PM
To limit the inputed values to the listed items, please set the 'limitToList' property value to true instead.
Code:
$('#cc').combobox({
  limitToList: true
  ...
})


Title: Re: Combobox scroll bar not working in IE
Post by: keja on May 31, 2021, 11:27:37 PM
Thank you Jarry. It works !