[material-ui][Slider] Incorrect warning: "Invalid prop value
of type string
supplied to MuiSliderValueLabel
, expected number
"
#44130
Labels
bug 🐛
Something doesn't work
component: slider
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
regression
A bug, but worse
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-2yokah?file=Demo.tsx
Steps:
Current behavior
The console shows an unnecessary / incorrect warning:
Expected behavior
No warnings.
Context
Possibly relevant information:
Your environment
``` System: OS: macOS 15.0.1 Binaries: Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm pnpm: Not Found Browsers: Chrome: 129.0.6668.101 Edge: 129.0.2792.89 Safari: 18.0.1 npmPackages: @emotion/react: 11.13.3 @emotion/styled: 11.13.0 @mui/base: 5.0.0-beta.59 @mui/core-downloads-tracker: 6.1.4 @mui/icons-material: 6.1.4 @mui/lab: 6.0.0-beta.12 @mui/material: 6.1.4 @mui/private-theming: 6.1.4 @mui/styled-engine: 6.1.4 @mui/system: 6.1.4 @mui/types: 7.2.18 @mui/utils: 6.1.4 @mui/x-date-pickers: 7.20.0 @mui/x-internals: 7.20.0 @mui/x-tree-view: 7.20.0 @types/react: ^18.3.11 => 18.3.11 react: ^18.3.1 => 18.3.1 react-dom: ^18.3.1 => 18.3.1 typescript: ^5.6.3 => 5.6.3 ```npx @mui/envinfo
Search keywords: MuiSliderValueLabel SliderValueLabel propTypes
The text was updated successfully, but these errors were encountered: