thefrontside / emberx-form

Form/field components for working with changesets
MIT License
3 stars 1 forks source link

Make changeset computed property #17

Closed cherewaty closed 7 years ago

cherewaty commented 7 years ago

Problem

I have a two-column layout where selecting an item from the list in the left column opens an x-form to edit that item in the right column.

If I click an item on the left, I successfully get a form with the right data from that model.

If I click a second (or third, fourth, etc.) item on the left, the x-fields within my x-form don't update to reflect the new model passed in. They stick on the values of the original model selected.

Proposed Solution

Compute the changeset anytime data or validations changes.

Alternative solution to https://github.com/thefrontside/emberx-form/pull/16