Skip to content

Update list variable when watching for array changes #420

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

Merged
merged 1 commit into from
Jun 12, 2015

Conversation

lukebennett
Copy link
Contributor

In 5c6630b, watching of arrays was refactored to remove a call to sfSelect, however in the process the list variable stopped getting updated. This led to adverse behaviour when adding new array items in the editor due to list and scope.modelArray being out of sync. This PR ensures the list variable is kept in sync with scope.modelArray when the array changes.

davidlgj added a commit that referenced this pull request Jun 12, 2015
Update list variable when watching for array changes
@davidlgj davidlgj merged commit 7517ff8 into json-schema-form:development Jun 12, 2015
@davidlgj
Copy link
Contributor

Oh, I didn't realize I broke something! Thank you @lukebennett

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.

3 participants