cuba
cuba copied to clipboard
Selected generated field loses focus after editing the previous field in DataGrid
Environment
- Platform version: 7.2
- Client type: Web
Description of the bug or enhancement
- Minimal reproducible example Download demo project: demo.zip
- Open Order screen
- Try to edit "name" field and then select "number" field
-
Expected behavior "number" field should be selected.
-
Actual behavior Field loses focus.
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.