Skip to content

The view's model never gets updated #2

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

Open
jsoverson opened this issue Feb 5, 2013 · 1 comment
Open

The view's model never gets updated #2

jsoverson opened this issue Feb 5, 2013 · 1 comment

Comments

@jsoverson
Copy link
Contributor

The created model or the one passed in never gets updated.

If I pass in a model with X number of attributes, but only have one field exposed in the form, serializeFormData only reports one field. While that is probably ok for the name of the method, there's no baked-in way for one to merge the form data with the original model.

Whether or not there should be a method is probably worth discussing. I could easily do:

this.model.set(this.serializeFormData());

In onSubmit or on blurs/other events, but it seems like something that should be available in the FormView.

@iamchrismiller
Copy link
Contributor

Feel free to submit a PR. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants