-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
Disable <SelectField /> items based on predicate (closes #736) #803
Conversation
Codecov Report
@@ Coverage Diff @@
## master #803 +/- ##
==========================================
- Coverage 97.28% 97.23% -0.05%
==========================================
Files 175 175
Lines 3424 3439 +15
Branches 655 668 +13
==========================================
+ Hits 3331 3344 +13
Misses 8 8
- Partials 85 87 +2
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.
I'm still thinking if we could come up with a better name.
This PR adds the ability to disable certain items based on predicate (similar to
.filter(item => condition(item))
) that can be specified as a prop.Example: Disable all odd values