Fix adf is not defined for customStencil (#2795)

This commit is contained in:
Maurizio Vitale 2017-12-21 16:18:02 +00:00 committed by Vito
parent 904b930009
commit 23c912989a

View File

@ -68,6 +68,10 @@ export class FormFieldComponent implements OnInit, OnDestroy {
}
ngOnInit() {
const w: any = window;
if (w.adf === undefined) {
w.adf = {};
}
let originalField = this.getField();
if (originalField) {
let customTemplate = this.field.form.customFieldTemplates[originalField.type];