From aeb22011d213ff2f98c1acc1ae1efc22b7f57763 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 4 Dec 2020 09:25:56 -0800 Subject: [PATCH] Remove placeholder on deployment wizards when field is disabled dynamically (#13658) --- extensions/resource-deployment/src/ui/modelViewUtils.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extensions/resource-deployment/src/ui/modelViewUtils.ts b/extensions/resource-deployment/src/ui/modelViewUtils.ts index b83332eca2..6d7c6cdcd8 100644 --- a/extensions/resource-deployment/src/ui/modelViewUtils.ts +++ b/extensions/resource-deployment/src/ui/modelViewUtils.ts @@ -371,7 +371,8 @@ async function hookUpDynamicEnablement(context: WizardPageContext): Promise { const targetComponentValue = await targetComponent.getValue(); - fieldComponent.component.enabled = targetComponentValue === targetValue; + const valuesMatch = targetComponentValue === targetValue; + fieldComponent.component.enabled = valuesMatch; const isRequired = fieldComponent.component.enabled === false ? false : field.required; if (fieldComponent.labelComponent) { fieldComponent.labelComponent.requiredIndicator = isRequired; @@ -380,6 +381,12 @@ async function hookUpDynamicEnablement(context: WizardPageContext): Promise { updateFields();