-
Notifications
You must be signed in to change notification settings - Fork 525
Closed
Description
Versions:
@inertiajs/inertia
version: 0.10.1@inertiajs/inertia-vue
version: 0.7.2
Describe the problem:
Is there any way to add property to form if it's not defined on start?
Like this it won't post custom field.
Thanks
Steps to reproduce:
data() {
return {
sending: false,
form: this.$inertia.form({
name: "",
})
};
},
methods: {
submit() {
this.sending = true;
this.form.post(this.route("test"), {
preserveScroll: true,
onSuccess: () => (this.sending = false),
onError: () => (this.sending = false)
});
}
}
mounted(){
this.form.custom = "example".
}
kirkbeard and luizotavior
Metadata
Metadata
Assignees
Labels
No labels