Skip to content
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] Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" #44130

Closed
joshkel opened this issue Oct 16, 2024 · 3 comments · Fixed by #44131
Assignees
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

Comments

@joshkel
Copy link
Contributor

joshkel commented Oct 16, 2024

Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-2yokah?file=Demo.tsx

Steps:

  1. Load the page with the console open.

Current behavior

The console shows an unnecessary / incorrect warning:

Warning: Failed prop type: Invalid prop value of type string supplied to MuiSliderValueLabel, expected number.

Expected behavior

No warnings.

Context

Possibly relevant information:

Your environment

npx @mui/envinfo ``` 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 ```

Search keywords: MuiSliderValueLabel SliderValueLabel propTypes

@joshkel joshkel added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 16, 2024
joshkel added a commit to joshkel/material-ui that referenced this issue Oct 16, 2024
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: slider This is the name of the generic UI component, not the React module! regression A bug, but worse labels Oct 16, 2024
@oliviertassinari oliviertassinari changed the title Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" [slider] Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" Oct 16, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title [slider] Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" [material-ui][Slider] Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" Oct 26, 2024
@ZeeshanTamboli ZeeshanTamboli added package: material-ui Specific to @mui/material and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 26, 2024
@ZeeshanTamboli ZeeshanTamboli assigned joshkel and unassigned mnajdova Oct 26, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@joshkel How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@thenick775
Copy link

Has this been released?

@ZeeshanTamboli
Copy link
Member

Has this been released?

Not yet. The fix will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants