-
-
Notifications
You must be signed in to change notification settings - Fork 775
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 toggle any filter #1065
fix toggle any filter #1065
Conversation
for multiselect checkbox groups: if all selected --> others deselected if other selected --> any deselected if none selected --> any selected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your eslint configuration output the following error:
ESLint couldn't find the plugin "eslint-plugin-html". This can happen for a couple different reasons:
The above plugin is not installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your eslint configuration output the following error:
ESLint couldn't find the plugin "eslint-plugin-html". This can happen for a couple different reasons:
The above plugin is not installed.
Codecov Report
@@ Coverage Diff @@
## master #1065 +/- ##
==========================================
- Coverage 32.02% 31.98% -0.05%
==========================================
Files 105 105
Lines 7247 7247
Branches 941 941
==========================================
- Hits 2321 2318 -3
- Misses 4818 4821 +3
Partials 108 108
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
if (event.target.value === 'any') { | ||
// Deselect other filters when 'any' is selected | ||
$('input[name=' + key + '][value!=any]').prop('checked', false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - Thanks for the contribution!
@thelostone-mc - please take a look, I found passing the event to the now renamed
toggleAny
function made it easier to reason about and achieve the expected behaviour.Description
Fix toggle any filter - could not previously click "Any"
Checklist
Affected core subsystem(s)
UI
Testing
Confirmed XHR request matches to existing app for:
Note that I noticed a weird issue with local storage that is also in production for which an issue was created.
Refers/Fixes
Fixes: #1011