cuba icon indicating copy to clipboard operation
cuba copied to clipboard

Selected generated field loses focus after editing the previous field in DataGrid

Open Flaurite opened this issue 5 years ago • 1 comments

Environment

  • Platform version: 7.2
  • Client type: Web

Description of the bug or enhancement

  • Minimal reproducible example Download demo project: demo.zip
  1. Open Order screen
  2. Try to edit "name" field and then select "number" field
  • Expected behavior "number" field should be selected.

  • Actual behavior Field loses focus.

Flaurite avatar Aug 31 '20 07:08 Flaurite

The reason is that every time an item is changed, DataGrid re-renders corresponding row, hence it calls all column generators. Because of this, it's recommended using DataGrid inline editor in case you need edit an item.

glebfox avatar Oct 09 '20 10:10 glebfox