I'm trying to do an edit function, Where I'll get the data from the backend. So if the value of dependents is '1,2' then box the checkbox should be selected. I should be able to unselect the checkbox and send the value again if needed. In the below one, When we click on the add for the second row I'm checking if value of check box as 2 (line:79) and it's showing as checked. The problem is when I'm unable to unselect it and send it again.
https://codesandbox.io/s/naughty-rhodes-i2sn9?file=/src/App.js
Aucun commentaire:
Enregistrer un commentaire