Skip to content

Preserve hidden selected genes in multiselect#2332

Merged
keller-mark merged 6 commits intovitessce:mainfrom
marcovarrone:fix-2331
Nov 19, 2025
Merged

Preserve hidden selected genes in multiselect#2332
keller-mark merged 6 commits intovitessce:mainfrom
marcovarrone:fix-2331

Conversation

@marcovarrone
Copy link
Copy Markdown
Contributor

Fixes #2331

In packages/view-types/feature-list/src/FeatureList.js, the gene selection handler now preserves genes that were hidden by a filter: it recomputes newSelection to include any previously selected keys that aren’t present in the current filtered selection before calling setGeneSelection.

This ensures that multiselect keeps the filtered-out but selected genes in the shared selection state.

Checklist

  • Have tested PR with one or more demo configurations
  • Documentation added, updated, or not applicable

@keller-mark
Copy link
Copy Markdown
Member

Thank you @marcovarrone ! I made a change to ensure that de-selection while results are filtered works.

keller-mark and others added 3 commits November 18, 2025 17:10
@keller-mark keller-mark merged commit 5b992dc into vitessce:main Nov 19, 2025
7 checks passed
@github-actions github-actions bot mentioned this pull request Nov 19, 2025
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.

Gene selection lost when filtering feature list

3 participants