-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Labels
bug reportA submitted bug report, not yet validated.A submitted bug report, not yet validated.
Description
Describe the bug
When a form gets unmounted (in my original encounter due to routing and with a schema, in the below example, with a v-if and no schema), the data to which it is bound with v-model get cleared.
To Reproduce
<FormulateForm v-if="here" v-model="testDB">
<FormulateInput type="text" name="id"></FormulateInput>
</FormulateForm>
<button @click="here = !here">is {{here}}</button>
{{JSON.stringify(testDB, null, 2)}}
...
data: () => ({
testDB: {},
here: true,
})
Reproduction
Here is a codepen with the above form
https://codepen.io/twitwitwi/pen/oNLgVwB
Expected behavior
Filled data should be preserved when the forms get unmounted.
Metadata
Metadata
Assignees
Labels
bug reportA submitted bug report, not yet validated.A submitted bug report, not yet validated.