DataGrid inline edit with picker field ends editing incorrectly

Hi

Sample project attached to edit order and order lines in a single master-detail form.

When editing the image column, the image column becomes a picker field displaying label of ImageEntity (which is an indirection to FileDescriptor)

image

image

I change the price from 100 to 50, then click picker field to change the image.

image

The lookup screen opens, and the image is correctly updated after closing with a selection. However it cancels the grid editing session abruptly, the price has reverted to 100.

image

Worse, even the EditorCloseListener I have set is not called, meaning the grid editing session has just been plainly aborted, but, still, the new ImageEntity has been set

Not sure about what am I doing wrong here.

datagrid.zip (111.6 KB)

Best Regards
Michael

Hi!

Thank you for reporting a problem, this is known issue, see cuba-platform/cuba#2157. As workaround you can open lookup screen as dialog.

Thanks @Pinyazhin, the workaround works indeed.