blocka / vue-simpleform

Form library for vue. Inspired by Formik for react.
MIT License
38 stars 6 forks source link

Field can't pass value to custom element #2

Closed Maxim-Chugaev closed 4 years ago

Maxim-Chugaev commented 6 years ago

This is not work for me with vue 2.5.16.

lolenko commented 6 years ago

Hey. It seems like Field component doesn't work correctly. value hasn't been updating

blocka commented 6 years ago

Would either of you be able to put together a reproduction on codesandbox?

Maxim-Chugaev commented 6 years ago

i was created repository with problem demonstration. https://github.com/Maxim-Chugaev/vue-simple-form-problem

blocka commented 6 years ago

Interesting problem. It seems as though the custom component doesn't get rerendered, although the new state does get capture by SimpleForm (you can verify this by inspecting the result of he validate or handleSubmit callbacks).

I will try to take a look later and see why that is.

blocka commented 6 years ago

This should be fixed in the latest version.

Maxim-Chugaev commented 6 years ago

thx, good job!

blocka commented 6 years ago

@lolenko does this fix your issue?