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][Rating] Switching from uncontrolled to controlled #42348

Closed
Mattarek opened this issue May 23, 2024 · 2 comments
Closed

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

Mattarek opened this issue May 23, 2024 · 2 comments
Assignees
Labels
component: rating This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@Mattarek
Copy link

Mattarek commented May 23, 2024

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

@Mattarek Mattarek added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 23, 2024
@zannager zannager added the component: rating This is the name of the generic UI component, not the React module! label May 23, 2024
@danilo-leal danilo-leal changed the title Bad link for Rating component to react docs. [material-ui][Rating] Switching from uncontrolled to controlled May 28, 2024
@danilo-leal danilo-leal added the package: material-ui Specific to @mui/material label May 28, 2024
@danilo-leal
Copy link
Contributor

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.

@danilo-leal danilo-leal removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 28, 2024
@mj12albert mj12albert added the status: waiting for author Issue with insufficient information label Jun 24, 2024
@mj12albert mj12albert assigned mj12albert and unassigned mj12albert Jun 24, 2024
Copy link

github-actions bot commented Jul 2, 2024

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.

@github-actions github-actions bot closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: rating This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

4 participants