-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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(native-filters): allowClear only when required not checked #14353
Conversation
superset-frontend/src/filters/components/Select/controlPanel.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
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
Codecov Report
@@ Coverage Diff @@
## master #14353 +/- ##
==========================================
- Coverage 77.18% 77.14% -0.04%
==========================================
Files 954 954
Lines 48134 48140 +6
Branches 5985 5987 +2
==========================================
- Hits 37151 37139 -12
- Misses 10786 10804 +18
Partials 197 197
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* fix(native-filters): allowClear only when required not checked * Update superset-frontend/src/filters/components/Select/controlPanel.ts Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com> (cherry picked from commit 8a0d321)
* fix(native-filters): allowClear only when required not checked * Update superset-frontend/src/filters/components/Select/controlPanel.ts Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com> (cherry picked from commit 8a0d321)
…e#14353) * fix(native-filters): allowClear only when required not checked * Update superset-frontend/src/filters/components/Select/controlPanel.ts Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
SUMMARY
Rephrase "Allow empty filter" to be inline with Filter Box "Required" control. Also change behavior so that
allowClear
is set to false when "Required" is set to true.The control has been renamed and the description updated:

When in the dashboard view, the selection can't be cleared when in single select mode:

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION