Add focus function for modelview components (#8348)

* Add focus method for modelview components

* Remove focus properties from table and radiobutton

* Fix break
This commit is contained in:
Charles Gagnon
2019-11-15 17:36:55 -08:00
committed by GitHub
parent d6ef42c8b0
commit ae8304fc33
17 changed files with 62 additions and 48 deletions

View File

@@ -38,10 +38,6 @@ export class SelectOperationPage extends BasePage {
let importComponent = await this.createImportRadioButton();
let exportComponent = await this.createExportRadioButton();
// default have the first radio button checked
this.deployRadioButton.checked = true;
this.deployRadioButton.focused = true;
this.form = this.view.modelBuilder.formContainer()
.withFormItems(
[
@@ -54,6 +50,7 @@ export class SelectOperationPage extends BasePage {
}).component();
await this.view.initializeModel(this.form);
this.deployRadioButton.focus();
this.instance.setDoneButton(Operation.deploy);
return true;
}
@@ -67,6 +64,7 @@ export class SelectOperationPage extends BasePage {
.withProperties({
name: 'selectedOperation',
label: localize('dacFx.deployRadioButtonLabel', "Deploy a data-tier application .dacpac file to an instance of SQL Server [Deploy Dacpac]"),
checked: true // Default to first radio button being selected
}).component();
this.deployRadioButton.onDidClick(() => {