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

Reactive Grid - Cells lose focus when editing a new row if react-sortable-hoc is used #3247

Open
2 tasks done
onebalaban opened this issue Feb 4, 2021 · 1 comment
Open
2 tasks done
Labels
bug Grid The DevExtreme Reactive Grid component

Comments

@onebalaban
Copy link

  • I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

  • React Grid

Current Behaviour

Cells lose focus when editing a new row if react-sortable-hoc is used.

Expected Behaviour

Cells should not lose focus. For instance, see the behavior when an existing row is edited.

Steps to Reproduce

  1. Click the "NEW" button.
  2. Type the text in a cell.

Link to the example that reproduces the issue: CodeSandBox.

Environment

  • devextreme-reactive: 2.7.1
  • react: 16.13.1
  • browser: Chrome
  • bootstrap: none
  • react-bootstrap: none
  • material-ui: 4.11.0
  • react-sortable-hoc: 1.11.0

See also

This bug report is based on the following ticket: T969302.

@LazyLahtak LazyLahtak added bug Grid The DevExtreme Reactive Grid component and removed STATE: Need response labels Feb 4, 2021
@egaluza egaluza assigned egaluza and unassigned egaluza Feb 7, 2022
@Krijovnick
Copy link
Contributor

We need more time to change the current behavior, because the fix leads to Breaking Changes and requires major reworking. Until we fix it, use the following workaround. Move the wrapped TableRow and TableBody components out of the TableRowComponent and TableBodyComponent methods to prevent them from being recreated on every re-render. I created an example to demonstrate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Grid The DevExtreme Reactive Grid component
Projects
None yet
Development

No branches or pull requests

4 participants