diff --git a/public/apps/account/tenant-switch-panel.tsx b/public/apps/account/tenant-switch-panel.tsx index acc3c3c31..079332015 100755 --- a/public/apps/account/tenant-switch-panel.tsx +++ b/public/apps/account/tenant-switch-panel.tsx @@ -232,6 +232,9 @@ export function TenantSwitchPanel(props: TenantSwitchPanelProps) { } }; + const invalidCustomTenant = + tenantSwitchRadioIdSelected === CUSTOM_TENANT_RADIO_ID && !selectedCustomTenantOption[0]; + let content; if (isMultiTenancyEnabled) { @@ -249,6 +252,7 @@ export function TenantSwitchPanel(props: TenantSwitchPanelProps) { In current EUI if put into the child of radio option, clicking in the combo box will not show the drop down list since the radio option consumes the click event. */} Confirm diff --git a/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap b/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap index 7c14be0e7..37a7a14df 100644 --- a/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap +++ b/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap @@ -76,6 +76,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh }, ] } + placeholder="Select a custom tenant" selectedOptions={Array []} singleSelection={ Object { @@ -190,6 +191,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh }, ] } + placeholder="Select a custom tenant" selectedOptions={Array []} singleSelection={ Object { @@ -304,6 +306,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh }, ] } + placeholder="Select a custom tenant" selectedOptions={Array []} singleSelection={ Object { @@ -418,6 +421,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh }, ] } + placeholder="Select a custom tenant" selectedOptions={Array []} singleSelection={ Object { @@ -532,6 +536,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh }, ] } + placeholder="Select a custom tenant" selectedOptions={Array []} singleSelection={ Object {