Combobox event change show undefined

Why after click combobox even show undefined value then real value?
combobox.events.on(“change”, function (id) {
alert(id);
})
the example on DHTMLX Snippet Tool

This is the expected behavior.
Changing the selected option in the combo performs in two steps:

  1. Clearing the selected option (change event returns with null value)
  2. Setting a new option (change event with the new selected option)

before Version 8.3.8 doent show undefined, could you give me some example?

before Version 8.3.8 doent show undefined,

If you check the version 7.1:
https://snippet.dhtmlx.com/8fb0574n
It had the same behavior.

could you give me some example?

Could you please, clarify what kind of example do you expect?

In 8.3.7 is normal like this DHTMLX Snippet Tool, not show the undefined id

Unfortunately the current behavior is the expected one.