The getAriaValueText
prop doesn't work for Slider even in the examples of the docs.
When function is provided on getAriaValueText
prop for Slider, it should display the return string value in the label.
Right now it is showing value in the label which shouldn't be the case.
Link:
I am trying to show the selected value as label on slider.
| Tech | Version |
|--------------|---------|
| Material-UI | v4.3.0 |
| React | 16.8 |
| Browser | Chrome |
| TypeScript | x |
| etc. | |
馃憢 Thanks for using Material-UI!
We use the issue tracker exclusively for bug reports and feature requests, however,
this issue appears to be a support request or question. Please ask on StackOverflow where the
community will do their best to help. There is a "material-ui" tag that you can use to tag your
question.
If you would like to link from here to your question on SO, it will help others find it.
If your issues is confirmed as a bug, you are welcome to reopen the issue using the issue template.
This is not a support. This is bug. The docs, API and example given does not match. How can a mentioned functionality that is not working can be marked as a support?
@junaidatique getAriaValueText
affects the aria-valuetext
attribute (https://github.com/mui-org/material-ui/blob/ede30a5a0af518e780414bd853b93bb275863f48/packages/material-ui/src/Slider/Slider.js#L700) maybe you鈥檙e looking for the valueLabelFormat
prop?
Having same problem as @junaidatique
If anyone else comes across this one.. the variable you pass to this prop should be a function, not a string
Most helpful comment
@junaidatique
getAriaValueText
affects thearia-valuetext
attribute (https://github.com/mui-org/material-ui/blob/ede30a5a0af518e780414bd853b93bb275863f48/packages/material-ui/src/Slider/Slider.js#L700) maybe you鈥檙e looking for thevalueLabelFormat
prop?