Posted November 6, 2018
Going to keep this short, because, by the time you most likely find this post, all you want is to just see it work, then...
For further actions, you may consider blocking this person and/or reporting abuse
The first issue, fields.remove. Here is the updated toggle function:
The "default checked" issue. Here is the updated code:
And
inArray
function:And
arrayCompare
helper function:HI! Thank you for a nice article! Just noticed a little problem - according to the docs,
fields.remove
accepts an index of item, not an item itself, source: npmjs.com/package/react-final-form...Thank you so much. I was able to render the textfield just fine but was having trouble with checkboxes. This is exactly what I needed!
The Material ui version is missing the checked attribute for the checkbox, so it won't process any existing values
@marc Were you able to find a solution to this problem? I am trying to set my checkboxes to default checked but it wont allow users to uncheck them.
Beautiful and concise. Exactly how I like my tutorials.
I am trying to set my checkboxes to default checked but it wont allow users to uncheck them. Do you know of a solution?