Removing a property from (a clone of) the schema does not remove the field from the form
The name field should disappear
The name field doesn't disappear
0.49.0
I guess it is because you are adding it if it is checked but no removing it if it is unchecked.
I didn't write the code, it's an example from https://github.com/mozilla-services/react-jsonschema-form#tips-and-tricks (so I presumed that it was meant to work as-is).
The code example does actually remove them, but it does it by mutating the schema.properties instead of replacing it with a modified clone.
https://jsfiddle.net/69z2wepo/83018/ is a working version of the original example. I would suggest that you guys update the example link to the fixed version.
@LyraelRayne would you like to send a pull-request with that modification?
I'm not really sure how to go about that (never done one on github). Do I have to make a fork or something?
EDIT: Worked it out :)
Quick question: Do I have to keep the fork around once the pull request is merged?
Nope :)
Thanks. That was all a lot less scary than it seemed ;)
Most helpful comment
Thanks. That was all a lot less scary than it seemed ;)