User's input is changing the <FormKit type="form">'s value prop #72
Labels
🪄 enhancement
New feature or request
🔵 priority-3
3. Lower priority issue
🚀 release-ready
Feature or fix is complete and on an upcoming release branch
Milestone
Describe the bug
When assigning a
const obj = ref({})
to a<FormKit type="form"> element using the
:value` prop, the component is making changes to the prop.Generally in Vue, components should not mutate props, so that behavior comes unexpected.
(see. https://vuejs.org/guide/components/props.html#one-way-data-flow)
If - as a Developer - I want my data (outside of the component) being mutated, I can use v-model's two-way binding, which is available, too. https://formkit.com/essentials/forms#populating)
Reproduction
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: