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

Fix bug where selecting a row while filtered would lose all other rows #171

Merged
merged 10 commits into from
May 3, 2024

Conversation

Evertras
Copy link
Owner

@Evertras Evertras commented May 3, 2024

#170

Before, we would copy all visible rows over with just the modified row having toggled its select. However, when filtered, the visible rows did not include all the filtered-out rows, so they would be lost.

Now we keep an internal ID on all rows. This may also be useful in the future, but it's particularly useful to allow us to find the selected row and toggle its selection directly in the underlying row structure. This is also quicker and requires less copying, which is a bonus, despite being a simple linear search.

@Evertras Evertras merged commit 66ee51d into main May 3, 2024
6 checks passed
@Evertras Evertras deleted the filter-and-select-fix branch May 3, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant