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

[5.x] Fix toggle fields in data list filters #10393

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jul 3, 2024

This pull request fixes an issue when using Toggle fields in data list filters, where changing the value between true/false wouldn't trigger the data table to be refreshed.

It looks like this was happening due to Underscore's _.isEmpty function considering true/false to be empty, causing the toggle field's value to be filtered out before updating the filter's values.

I've replaced the check with a simple "is null or undefined" check which seems to fix the issue.

Fixes #10194.

@jasonvarga jasonvarga merged commit 34624c3 into 5.x Jul 10, 2024
17 checks passed
@jasonvarga jasonvarga deleted the fix/toggle-fields-in-filters branch July 10, 2024 16:54
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.

Toggle field type in filter does not work
2 participants