EasyUI Forum
May 10, 2024, 05:41:00 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: editable combo's onchange not firing when typing into box  (Read 2644 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: December 29, 2020, 07:31:06 AM »


Code:
$("#test").combo({
required:true,
label: "test",
onChange: function(n,o) {
console.log(n, o)
}
});

onChange never fires, and getValue returns empty string.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: December 30, 2020, 08:28:18 PM »

The combo is the base component for all other drop-down components. It does nothing in displaying data. You should call 'setValue' method to trigger the 'onChange' event. If you want a drop-down list component, use the combobox component instead.
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!