EasyUI Forum
June 16, 2024, 10:27:38 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 scroll bar not working in IE  (Read 3931 times)
keja
Newbie
*
Posts: 26


View Profile Email
« 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 ?
 
Logged
jarry
Administrator
Hero Member
*****
Posts: 2265


View Profile Email
« Reply #1 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
  ...
})
Logged
keja
Newbie
*
Posts: 26


View Profile Email
« Reply #2 on: May 31, 2021, 11:27:37 PM »

Thank you Jarry. It works !
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!