-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[material-ui][Slider] Fix value prop type warning #44131
[material-ui][Slider] Fix value prop type warning #44131
Conversation
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.
Cool to see prop-types > types in this instance (SliderValueLabelProps
is unable to update its type to match valueLabelFormat
returned value). I guess we could use a generic to support this but it would complexity the types.
The reference to "an array with two values" looks like it was copied and pasted from Slider's `value` prop, but for this component, value is a single item. Co-authored-by: Olivier Tassinari <[email protected]> Signed-off-by: Josh Kelley <[email protected]>
SliderValueLabel
value type
SliderValueLabel
value typeSliderValueLabel
value proptype warning
SliderValueLabel
value proptype warning
Netlify deploy previewhttps://deploy-preview-44131--material-ui.netlify.app/ Bundle size report |
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.
@joshkel I pushed few changes. Thanks for the pull request.
Fixes #44130