diff --git a/src/sql/base/browser/ui/selectBox/selectBox.ts b/src/sql/base/browser/ui/selectBox/selectBox.ts index 05c9fb3e7e..9d5cebab61 100644 --- a/src/sql/base/browser/ui/selectBox/selectBox.ts +++ b/src/sql/base/browser/ui/selectBox/selectBox.ts @@ -197,11 +197,11 @@ export class SelectBox extends vsSelectBox { } public select(index: number): void { + super.select(index); let selectedOptionIndex = this._optionsDictionary.get(this._selectedOption); if (selectedOptionIndex === index) { // Not generating an event if the same value is selected. return; } - super.select(index); if (this._dialogOptions !== undefined) { this._selectedOption = this._dialogOptions[index]?.value; }