-
New Feature
-
Resolution: Done
-
Normal
-
8.6.0.1
-
Security Level: Jimmy
-
None
-
ZK 8.6.1 S1
Steps to Reproduce
<combobox onSelect="Clients.log(event.toString())" onChange="Clients.log(event.toString())"> <comboitem label="aaa"/> <comboitem label="bbb"/> <comboitem label="ccc"/> </combobox>
use cursor DOWN to change the current selection to select 'ccc'
Current Result
everytime when pressing up/down an onSelect/onChange event is fired to the server
(this doesn't happen when simply typing 'ccc', here the events only trigger during onBlur)
When using the mouse it is possible to chose an element without firing the events for intermediate results
Expected Result
provide an options to disable eagerly sent events (and send event when leaving the combobox onBlur) For scenarios where only the final selection is required (and intermediate selections only trigger unwanted http requests)
Debug Info
this becomes especially more apparent when using autodrop="true", indicating more a preview than the actual selection before confirming with ENTER
Root Cause
ZK-2548 could be related
Workaround
- relates to
-
ZK-4509 Setting model in onOpen listener of combobox causes "... cannot be cast to org.zkoss.zul.Comboitem" error
- Closed