Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stateful): use provided prop instead of default value if provided. #4057

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Dec 1, 2023

I see how I can create form data with a new form, but how would I prepopulate data?

I cant do myForm.formData.value = {} as SomeType, because .value is readonly. Is formData only able to used to create records and not edit them? I was wondering about this approach because I'm experiencing issues with clearing a form by setting the v-model object to empty or null which immediately fires the form validation. This happens wether or not I call reset() or try and use resetValidation() to clear messages.

Fix this example: https://ui-experimental.vuestic.dev/play#eNp9Ustu2zAQ/BVCFydAZAHJzVACNE0CpGjdoi1y4oWWVzYTvsCHY8PQv2dJWpLzgC+SODszO1ztvvhmzHQToJgVtWssN5448MEQwdTqmhbe0eKGKkK4NNp6sifBwYO2knSktVqSCYqd500Z+ISqyGy0cpHYIuuOeYbM6151NpG7+J6cU1VXuSHa48GDNIJ5SM3qJ5Z6WGgxQ5bQgjiPhDYI0gjmXKwsykvSCtimR9loQVbMlJeHzMnoUZngidRLEE9MBEDZL/bidtFQMRnPLbfOz/EbIcEWIBB7iBg5gNVJuzkstVvDZjTEeB/9fiL0hR0OCLLlLHmWm4OpglcSi2fno+2CW7++Y7sj29sIkWXCsm1d5eGlseIxiL6b4Df5VtFuRvbjL5oOEyBdV1dIHCUp+GdFf8XPgiHSe0Ef/lhQVyldXR39faqKiyJvWymZmT47rXA795FPDwVcSjTPLWkxbmCEabH23rhZVQVewtaA5RKUZyKueeRNl7Cpeo0OvpKMK2xDi2jYUdVhAO9wjVu++tC+0dJwAfa38RzX/F0MJoR+/ZEwbwNc9HizhublC/zZbXPePxYc2A1uxlDzzK7A5/L9vzls8Xso4qIEgewTxb/gtAgxY6bdBrXE2Ee8lPYxTZOr1X93v/WgXH+pGDRNI/HTiL+fuPoY92p6NUyxewPj83Vs

@m0ksem
Copy link
Collaborator Author

m0ksem commented Dec 5, 2023

Looks good for me after week + we tested it with experimental version.

@m0ksem m0ksem merged commit e671e4b into epicmaxco:develop Dec 5, 2023
2 checks passed
@m0ksem m0ksem deleted the fix/default-value-for-stateful branch December 5, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant