Comcast / Comcast/react-data-grid

Lose focus when filtering rows with grouping

Open
#2,704 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.7k
Forks
2.2k
Avg merge
1d 2h
Merged PRs (30d)
33

Description

## Describe the bug
I use the datagrid with the grouping example of the website, I added a custom filter outside of the component that filter on a specific column. The rows are updated inside a useMemo with "filters" and "rows" in dependencies.

Everything work as expected when rows are not grouped, but when I group them I got unexpected behavior (lose focus -depends on the character-, sometimes crash with `TypeError: Cannot read properties of undefined (reading 'editorOptions')`).

## To Reproduce

1. row grouping
2. input that filter on a specific column outside of the datagrid

## Expected behavior

## Environment

- `react-data-grid` version: ^7.0.0-beta.7
- `react`/`react-dom` version: ^17.0.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.