Skip to content

Fix array item deletion issue #895

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 4 commits into from
Jun 25, 2017

Conversation

mnzaki
Copy link
Contributor

@mnzaki mnzaki commented Jun 13, 2017

Description

Deleting array items which are objects will cause the fieldset field's sf-field directive $destroy event handler to try to remove itself from the array again. This was broken in various way previously because of incorrect form keys, but the issue became visible after changes from #870

Checklist

  • I have read and understand the CONTRIBUTIONS.md file
  • I have searched for and linked related issues
  • I have created test cases to ensure quick resolution of the PR is easier
  • I am NOT targeting main branch
  • I did NOT include the dist folder in my PR

@json-schema-form/angular-schema-form-lead

mnzaki added 2 commits June 13, 2017 22:42
When an array item is deleted from the model, the fields get destroyed.
The destroy handler was trying to delete the item again.
@mnzaki
Copy link
Contributor Author

mnzaki commented Jun 14, 2017

Note failing test because travis still not running the build before the tests

@mnzaki mnzaki mentioned this pull request Jun 20, 2017
@Anthropic Anthropic merged commit ac439cb into json-schema-form:development Jun 25, 2017
Anthropic added a commit that referenced this pull request Jun 25, 2017
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.

2 participants