combo dinamical load problem

Hi i have this example

http://webix.com/snippet/34b5f994

if you write into combo like "Clien " and after you select Client 1
try write “clien” 1-2 times
the onChange method get the “-1” value instead of “0”
please help

Please try to not use such IDs as 0, null, false.
Webix components may behave incorrectly when working with zero-id data.

i change the id but doesn’t work
http://webix.com/snippet/faab5234
can you give me an example that can work? thx
the broblem there is only when i call GetCustomers() on the timedKeyPress
otherwhise it work’s eaven with id ‘0’ oR ‘-1’

I can confirm, that if you are typing the text that matches multiple options, and after that, selecting by click the non-first option, there will be two onchange event

undefined -> first item
first item -> clicked item

It is a bug and will be fixed.
Is it the same issue as in your case ?

yes the same thx