-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Radio] Cannot show "focus" after radio group value changed #38576
Comments
@JakeNg55555 Do you think you could update the sandbox to give some examples of these conditions? |
@mj12albert we have forked another version we haven't place all the things in the context, just consider there is a text box and input a human name, if it is empty, gender must select as "Other" |
This behavior is consistent with the native radio inputs and is expected. If you wish to style the focus state, you can add your own CSS. For example: .MuiRadio-root:focus-within {
/* your styles */
} |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
https://codesandbox.io/s/practical-nobel-w2rm4z?file=/Demo.tsx
Steps:
Current behavior 😯
The Group Label can highlight 'i.e. Gender'
however, the radios cannot show the "focus" circles
Expected behavior 🤔
expect step 2 should be same as step 1
Context 🔦
in our use case, we want tell the radioGroup to do focus (actually should be the selected one) under some condition, however, it cannot be achieve after any value changed inside the group
Your environment 🌎
you may refer to codesandbox to check the environment, we fork it directly from one of the mui demo page
The text was updated successfully, but these errors were encountered: