fix dynamic table validation (#1741)

- dynamic table widget no longer creates a copy of field model, but
uses original one, fixes the problem with validation and state
management
- update unit tests
This commit is contained in:
Denys Vuika
2017-03-22 09:58:12 +00:00
committed by Eugenio Romano
parent d32ed969a7
commit 44808a31a3
6 changed files with 24 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ export class DynamicTableWidget extends WidgetComponent implements OnInit {
ngOnInit() {
if (this.field) {
this.content = new DynamicTableModel(this.field.form, this.field.json);
this.content = new DynamicTableModel(this.field);
this.visibilityService.refreshVisibility(this.field.form);
}
}