problem with suggest-list

Hi

In this example: http://webix.com/snippet/03d6fbec I have a datatable, where you can double click a row to open a form. The form is bound to the datatable.
The text-field has a suggest-list attached.

If I double click the first row (pid: 1) and in the text-field, select an item from the suggest-list, then click the Cancel-button, to close the form.
Next, double click on the third row (pid: 3) Again , the form opens, but now the content of the text-field is the option selected from the suggest-list last!

Here, I would expect it to be empty, since the tekst-column of the datatable is empty (null).

Is this a bug with suggest-lists? Am I doing something wrong?
But more importantly, how can I avoid this?

I found that this happens even when I uncomment the part where the forms default values are set, if the form is marked dirty.

But, I also found that if I call form.clear() before i reset the values, the error disappears.

This solves my problem.

Hi,

The above snippet works correctly for me. After clicking on row 3, form doesn’t have a previously selected value from row 1. ( if you click the second time on row1, value may be still there, as form changes its values only on row selection in master grid, and will preserve entered value otherwise )

You can place a direct setValue call before .show to be sure that form always contains the actual data.

http://webix.com/snippet/67e9f348