Catching leaving event


Is it possible to catch the moment when user leaving a compontent?

There is a form and a combo component on it. When user select an existing item, the onChange occours. But when the user typing new value into edit box and leaves the component it’s value changes to empty but the event don’t tracked. So onChange event not able to catch this situation.
I think it may catch by an onExit event when the component editing is finished and user leaving the component.


you can set on blur event listener using dhx.event() method:

dhx.event($$(“combo_id”).getInput(), “blur”, function(){
//your code

Thank you!

You are welcome!