set focus to default cards when loaded (#8480)

* set focus to default cards when loaded

* add return type
This commit is contained in:
Alan Ren
2019-11-25 20:31:39 -08:00
committed by GitHub
parent 7a38943412
commit ffee69a765
4 changed files with 11 additions and 2 deletions

View File

@@ -182,6 +182,7 @@ export class DeploymentProfilePage extends WizardPageBase<DeployClusterWizard> {
const card = this.createProfileCard(profile, this._view!);
if (profile.profileName === defaultProfile) {
card.selected = true;
card.focus();
this.setModelValuesByProfile(profile);
}
this._cardContainer!.addItem(card, { flex: '0 0 auto' });