Passing contained component required field to itemConfig (#10858)

This commit is contained in:
Aasim Khan
2020-06-11 08:42:54 -07:00
committed by GitHub
parent 17164bdd26
commit bb244e4b91

View File

@@ -372,6 +372,10 @@ class FormContainerBuilder extends GenericContainerBuilder<azdata.FormContainer,
componentWrapper.ariaLabel = formComponent.title;
if (componentWrapper instanceof LoadingComponentWrapper) {
componentWrapper.component.ariaLabel = formComponent.title;
let containedComponent = componentWrapper.component as any;
if (containedComponent.required) {
componentWrapper.required = containedComponent.required;
}
}
}
let actions: string[] = undefined;