jeudi 25 janvier 2018

Material-UI Checkbox & Switch

So what I'm trying to do is to uncheck a checkbox, or switch component when another userinput changes. Now the problem is, that the internal SwitchBase component's checked prop is changing accordingly how i want it to change, but the checked state is not. (this only happens when i want to programatically uncheck one of these components) This result in an unchecked checkbox which is visually still checked.

Does anyone have a solution to this?

[case shown on this image1




Aucun commentaire:

Enregistrer un commentaire