Skip to content

fix: allow filtering out all values in spreadsheet filter#9574

Merged
sissbruecker merged 1 commit into
mainfrom
fix/spreadsheet-select-all-filter-state
Jun 22, 2026
Merged

fix: allow filtering out all values in spreadsheet filter#9574
sissbruecker merged 1 commit into
mainfrom
fix/spreadsheet-select-all-filter-state

Conversation

@vursen

@vursen vursen commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

In the spreadsheet filter popup, unchecking "Select All" had no effect, and when unchecking values one by one, the last one didn't do anything either. The selection looked empty, but no filtering happened, and after closing the popup everything was selected again, which was confusing.

Unchecking now hides the rows and the deselected state persists. The PR also hides the "Select All" checkbox entirely when all of a column's values are already filtered out by other columns.

Fixes #9549

🤖 Generated with Claude Code

@vursen vursen force-pushed the fix/spreadsheet-select-all-filter-state branch from 5d2b946 to 3a297a5 Compare June 22, 2026 11:05
@vursen vursen changed the title fix: correct Select All state in spreadsheet filter popup fix: filter out rows when deselecting values in spreadsheet Jun 22, 2026
@vursen vursen force-pushed the fix/spreadsheet-select-all-filter-state branch 2 times, most recently from 939c532 to 161135b Compare June 22, 2026 11:15
Unchecking "(Select All)", or unchecking individual values down to none,
did not hide the matching rows in a filtered column. The selection
looked cleared but no filtering happened, and closing the popup reverted
the checkboxes back to all-selected, so a column's values could never be
fully filtered out.

Unchecking now hides the corresponding rows and the deselected state
persists: the "Select All" handler filters all rows on an empty
selection, the value-change listener always updates filtered rows
(including when empty), and the popup-close revert is removed.

Because the deselected state now persists, updateOptions uses
three-state logic so reopening the popup shows the checkbox unchecked
instead of indeterminate. "(Select All)" is also hidden when all of a
column's values are already hidden by other columns' filters.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vursen vursen force-pushed the fix/spreadsheet-select-all-filter-state branch from 161135b to f5f1669 Compare June 22, 2026 11:16
@vursen vursen changed the title fix: filter out rows when deselecting values in spreadsheet fix: allow filtering out all values in spreadsheet filter Jun 22, 2026
@vursen vursen requested a review from sissbruecker June 22, 2026 11:18
@sonarqubecloud

Copy link
Copy Markdown

@sissbruecker sissbruecker added this pull request to the merge queue Jun 22, 2026
Merged via the queue into main with commit 213d676 Jun 22, 2026
19 checks passed
@sissbruecker sissbruecker deleted the fix/spreadsheet-select-all-filter-state branch June 22, 2026 12:52
@vaadin-bot

Copy link
Copy Markdown
Collaborator

Hi @vursen and @sissbruecker, when i performed cherry-pick to this commit to 25.1, i have encountered the following issue. Can you take a look and pick it manually?
Error Message:
Error: Command failed: git cherry-pick 213d676
error: could not apply 213d676... fix: allow filtering out all values in spreadsheet filter (#9574)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

sissbruecker added a commit that referenced this pull request Jun 22, 2026
…9577)

This PR cherry-picks changes from the original PR #9574 to branch 25.1.

---

> In the spreadsheet filter popup, unchecking "Select All" had no
effect, and when unchecking values one by one, the last one didn't do
anything either. The selection looked empty, but no filtering happened,
and after closing the popup everything was selected again, which was
confusing.
>
> Unchecking now hides the rows and the deselected state persists. The
PR also hides the "Select All" checkbox entirely when all of a column's
values are already filtered out by other columns.
>
> Fixes #9549
>
> 🤖 Generated with Claude Code

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
sissbruecker pushed a commit that referenced this pull request Jun 22, 2026
…: 25.2) (#9576)

This PR cherry-picks changes from the original PR #9574 to branch 25.2.
---
#### Original PR description
> In the spreadsheet filter popup, unchecking "Select All" had no
effect, and when unchecking values one by one, the last one didn't do
anything either. The selection looked empty, but no filtering happened,
and after closing the popup everything was selected again, which was
confusing.
> 
> Unchecking now hides the rows and the deselected state persists. The
PR also hides the "Select All" checkbox entirely when all of a column's
values are already filtered out by other columns.
> 
> Fixes #9549
> 
> 🤖 Generated with Claude Code
>

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spreadsheet: Unchecking "Select All" has no effect [2 days]

3 participants