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 FilterButton checked status #10191

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Fix FilterButton checked status #10191

merged 2 commits into from
Sep 10, 2024

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Sep 10, 2024

Problem

In the new design of the FilterButton dropdown, the checkbox for a filter is checked is the filter has a value. This isn't intuitive: if a user clicks on the item to have a filter input appear, they expect the checkbox to be displayed next time they open the dropdown.

image

Solution

Check the checkbox if the filter is displayed, not applied.

## Problem

In the new design of the FilterButton dropdown, the checkbox for a filter is checked is the filter has a value. This isn't intuitive: if a user clicks on the item to have a filter input appear, they expect the checkbox to be displayed next time they open the dropdown.

## Solution

Check the checkbox if the filter is displayed, not applied.
}}
filter={filterElement}
displayed={
!!displayedFilters[filterElement.props.source]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

appliedFilters is not needed anymore, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right! I'll fix it.

@djhi djhi added this to the 5.2.0 milestone Sep 10, 2024
@djhi djhi merged commit 53ed3a4 into next Sep 10, 2024
14 checks passed
@djhi djhi deleted the Fix-FilterNutton-checked-status branch September 10, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants