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

[slider] Incorrect warning: "Invalid prop value of type string supplied to MuiSliderValueLabel, expected number" #44130

Open
joshkel opened this issue Oct 16, 2024 · 0 comments · May be 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! regression A bug, but worse status: waiting for maintainer These issues haven't been looked at yet by a maintainer

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
@joshkel joshkel linked a pull request Oct 16, 2024 that will close this issue
@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
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! regression A bug, but worse status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants