mui / material-ui

Material UI: Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
https://mui.com/material-ui/
MIT License
92.41k stars 31.82k forks source link

[material-ui][Rating] Switching from uncontrolled to controlled #42348

Closed Mattarek closed 21 hours ago

Mattarek commented 1 month ago

Steps to reproduce

Bad link: MUI: A component is changing the uncontrolled value state of Rating to be controlled. Elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled Rating element for the lifetime of the component. The nature of the state is determined during the first render. It's considered controlled if the value is not undefined. More info: https://fb.me/react-controlled-components

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Search keywords: Rating

danilo-leal commented 1 month ago

Hey, thanks for opening the issue! Could you provide a minimal reproduction? It helps us troubleshoot. I couldn't necessarily understand what you were getting at from the description. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.

github-actions[bot] commented 21 hours ago

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.