When you use the Slider with a custom ValueLabelComponent, it ignores the passed valueLabelFormat and valueLabelDisplay.
Current Behavior 😯
When you provide a custom component it gets the raw number value as a prop, instead of the formatted one. It also doesn't display according to valueLabelDisplay.
Expected Behavior 🤔
I expect the value prop passed to the ValueLabelComponent to be formatted by the valueLabelFormat.
I also expect the valueLabelDisplay value to impact whether the ValueLabelComponent is displayed or not.
Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-0jbd4
Your Environment 🌎
| Tech |
Version |
| Material-UI |
v4.5.1 |
| React |
v16.10.2 |
| Browser |
Chrome |
When you use the Slider with a custom ValueLabelComponent, it ignores the passed
valueLabelFormatandvalueLabelDisplay.Current Behavior 😯
When you provide a custom component it gets the raw number value as a prop, instead of the formatted one. It also doesn't display according to
valueLabelDisplay.Expected Behavior 🤔
I expect the
valueprop passed to the ValueLabelComponent to be formatted by thevalueLabelFormat.I also expect the
valueLabelDisplayvalue to impact whether the ValueLabelComponent is displayed or not.Steps to Reproduce 🕹
https://codesandbox.io/s/create-react-app-0jbd4
Your Environment 🌎