0

I found that in flex, combobox has 3 events: open, close, change combobox events example

Let's say I selected A in my combo box. Then I might do 2 things:

  • I open combobox and click A option again
  • I open combobox and close it by clicking somewhere else (without clicking A option)

There is no selection change in either of the case above. And they both have open and close involved. So if I want these 2 actions have different behaviors, I can't programmatically distinguish them.... Is it possible to have a click event on combobox or combobox options?? I am using a data provider for my combobox...

Thanks a lot!!!

1 Answer 1

0

The ComboBox events do have a click event defined, although it is inherited.

Unless the ComboBox has a click event listener and calls preventDefault() to prevent the event from bubbling, you should be able to listen for the click event on a ComboBox without any issues.

2
  • Yes, ComboBox has a click event. But only a click event on a item of the combobox will solve my problem.... I found this post very similar to my problem, but doesn't seem to be a solution...stackoverflow.com/questions/7267982/…
    – ZZZ
    Jul 9, 2012 at 20:20
  • If you were using the Spark ComboBox/DropDownList you should be able to add an event listener directly onto the drop down. Jul 9, 2012 at 20:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.