Let child ModelView components control their own enabled status by default (#13524)

This commit is contained in:
Charles Gagnon
2020-11-23 15:49:02 -08:00
committed by GitHub
parent 3b20e8a61c
commit 7bb4d00073

View File

@@ -354,7 +354,8 @@ export abstract class ContainerBase<T, TPropertyBag extends azdata.ComponentProp
super.setProperties(properties);
this.items.forEach(item => {
let component = this.modelStore.getComponent(item.descriptor.id);
if (component) {
// Let child components control their own enabled status if we don't have one specifically set
if (component && properties.enabled !== undefined) {
component.enabled = this.enabled;
}
});