EasyUI Forum
May 18, 2024, 09:24:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: since v1.5 combobox::onselect fires on page load.  (Read 6790 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: September 06, 2016, 04:11:25 AM »

In documentation it is stated that "Fires when the user select a list item.".
I my case I have combobox which is used to reload page depending on value which user selects.

With v1.5 I have cyclic page reload because combobox::onselect fires on page load.

I don't see this problem with 1.4.5 and older versions.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 06, 2016, 08:09:32 AM »

The 'onSelect' event should be triggered when a list item is selected. When a combobox is created with a initialized 'value', the list item that has the corresponding value will be selected. The 'onSelect' event fires but the 'onChange' event does not fire. Please try to use the 'onChange' event instead of 'onSelect' event. If you would like to have the event that only fires when the user click a list item, you can extend a 'onClick' event by overriding the $.fn.combobox.defaults.panelEvents.click event handler.
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #2 on: September 07, 2016, 03:05:02 AM »

onChange 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!