Additional unit tests for form widgets

This commit is contained in:
Denys Vuika
2016-10-12 14:24:21 +01:00
parent 39178f1788
commit ccd41ba6e1
10 changed files with 223 additions and 26 deletions

View File

@@ -109,16 +109,12 @@ export class FunctionalGroupWidget extends WidgetComponent implements OnInit {
}
setupMaterialComponents(handler: any): boolean {
// workaround for MDL issues with dynamic components
super.setupMaterialComponents(handler);
if (handler) {
handler.upgradeAllRegistered();
if (this.elementRef && this.value) {
let container = this.elementRef.nativeElement.querySelector('.mdl-textfield');
if (container) {
container.MaterialTextfield.change(this.value);
}
this.setupMaterialTextField(this.elementRef, handler, this.value);
return true;
}
return true;
}
return false;
}