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 boolean filter behavior #87

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

avstudnitz
Copy link
Contributor

Case:

  • Have one boolean filter in a grid
  • Have one other filter in the same grid
  • Filter the grid using the other filter

IS:

  • The boolean filter jumps to "No"
  • On the next request, the "No" is applied for this filter

SHOULD:

  • The boolean filter stays empty and doesn't affect the results

This PR fixes this behavior. It also makes sure that a boolean filter is applied after the value is changed.

Case:
* Have one boolean filter in a grid
* Have one other filter in the same grid
* Filter the grid using the other filter

IS:
* The boolean filter jumps to "No"
* On the next request, the "No" is applied for this filter

SHOULD: 
* The boolean filter stays empty and doesn't affect the results

This PR fixes this behavior. It also makes sure that a boolean filter is applied after the value is changed.
@Vinai Vinai merged commit 32ac2d1 into hyva-themes:main Feb 6, 2025
2 checks passed
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.

2 participants