react-forms-processor
react-forms-processor copied to clipboard
Editing repopulated form
the readme is not that clear to me and i'm having problems finishing the input to a database.
When i get my data into the form, edit and save it:
<Form defaultFields={form.fields} value={formValues} renderer={renderer}>
<FormButton
label="Save"
onClick={(formData) => {
console.log(formData);
this.props.updateTicket(formData);
}}
/>
</Form>
I see the original unaltered data in formData, not the updates i've done. Obviously i'm missing a step.
That does sound like a bug - what renderer are you using? Are you working off master or off a particular release?
@draperd I'm using Altaskit off master, very vanilla.
"react-forms-processor": "^0.0.32",
"react-forms-processor-atlaskit": "^0.0.32",
``
I've just checked this and you're absolutely right that this isn't working correctly - my sincere apologies. I'll dig into this and see if I can resolve the problem asap. Thanks for bringing it to my attention and I'm sorry it has taken this long to start looking into it.
I've not forgotten about this - I've had a few attempts at fixing this but I've still got a test failing which I haven't got to the bottom of yet. Hopefully I'll have a solution soon.