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

Error validation on Checkbox/RadioButtons? #3771

Closed
amitthakkar22288 opened this issue Mar 23, 2016 · 3 comments
Closed

Error validation on Checkbox/RadioButtons? #3771

amitthakkar22288 opened this issue Mar 23, 2016 · 3 comments
Labels
component: button This is the name of the generic UI component, not the React module! component: checkbox This is the name of the generic UI component, not the React module!

Comments

@amitthakkar22288
Copy link

We do have errorText prop for Textfields and selectfields. As per the spec they are not supported for checkboxes/radiobuttons?

how do we handle validations on switches?
is there any other way we need to handle this?

@tintin1343
Copy link
Contributor

Currently the material design spec does not clearly specify how did should be handled.

You could use divs for now to show errorTexts in them using onCheck event handler.

I am closing this issue for now, if you need further help you could use the gitter channel of material-ui or post your question on stackoverflow using ''material-ui tag.

@mbrookes
Copy link
Member

mbrookes commented Apr 25, 2016

I would add that the most obvious reason for this apparent omission is that there is theoretically no incorrect state for CheckBox or RadioButtons.

(Theonly exception might be the "Accept the Terms & Conditions" Checkbox anti-pattern.)

@bityogi
Copy link

bityogi commented Feb 19, 2018

Check out this for a solution.

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: checkbox This is the name of the generic UI component, not the React module! component: button This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: button This is the name of the generic UI component, not the React module! component: checkbox This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

6 participants