Material-ui: getAriaValueText on Slider not working

Created on 29 Jul 2019  路  5Comments  路  Source: mui-org/material-ui


The getAriaValueText prop doesn't work for Slider even in the examples of the docs.

  • [x] This is not a v0.x issue.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 馃


When function is provided on getAriaValueText prop for Slider, it should display the return string value in the label.

Current Behavior 馃槸


Right now it is showing value in the label which shouldn't be the case.

Steps to Reproduce 馃暪


Link:

  1. https://codesandbox.io/s/5r8pi

Context 馃敠


I am trying to show the selected value as label on slider.

Your Environment 馃寧

| Tech | Version |
|--------------|---------|
| Material-UI | v4.3.0 |
| React | 16.8 |
| Browser | Chrome |
| TypeScript | x |
| etc. | |

Slider support

Most helpful comment

@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?

All 5 comments

馃憢 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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rbozan picture rbozan  路  3Comments

ghost picture ghost  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

zabojad picture zabojad  路  3Comments

newoga picture newoga  路  3Comments