Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Flaurite opened this issue Aug 31, 2020 · 1 comment
Assignees
Labels
no solution yet We investigated the issue but don't know how to fix it type: bug Something isn't working
Milestone

Comments

@Flaurite
Copy link
Contributor

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 Flaurite added the type: bug Something isn't working label Aug 31, 2020
@Flaurite Flaurite added this to the Release 7.2 milestone Aug 31, 2020
@web-devel web-devel assigned Flaurite and unassigned t1-cuba Aug 31, 2020
@glebfox glebfox assigned glebfox and unassigned Flaurite Oct 7, 2020
@glebfox
Copy link
Member

glebfox commented Oct 9, 2020

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 glebfox added the state: won't fix This will not be worked on label Oct 9, 2020
@glebfox glebfox closed this as completed Oct 9, 2020
@glebfox glebfox reopened this Oct 9, 2020
@glebfox glebfox added severity: minor The defect does not affect functionality or data. It is merely an inconvenience. no solution yet We investigated the issue but don't know how to fix it and removed state: won't fix This will not be worked on severity: minor The defect does not affect functionality or data. It is merely an inconvenience. labels Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no solution yet We investigated the issue but don't know how to fix it type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants