Removing other changes (#14163)

This commit is contained in:
Aasim Khan
2021-02-04 18:47:59 -08:00
committed by GitHub
parent 350034cbb1
commit 71d9c91551

View File

@@ -197,11 +197,11 @@ export class SelectBox extends vsSelectBox {
} }
public select(index: number): void { public select(index: number): void {
super.select(index);
let selectedOptionIndex = this._optionsDictionary.get(this._selectedOption); let selectedOptionIndex = this._optionsDictionary.get(this._selectedOption);
if (selectedOptionIndex === index) { // Not generating an event if the same value is selected. if (selectedOptionIndex === index) { // Not generating an event if the same value is selected.
return; return;
} }
super.select(index);
if (this._dialogOptions !== undefined) { if (this._dialogOptions !== undefined) {
this._selectedOption = this._dialogOptions[index]?.value; this._selectedOption = this._dialogOptions[index]?.value;
} }