Skip to content

Commit

Permalink
Fix custom options selection event (#25380)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra committed Feb 22, 2024
1 parent 29697b0 commit 4244d9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ export class ConnectionWidget extends lifecycle.Disposable {
private _registerSelectionChangeEvents(collections: AdsWidget[][], option: azdata.ConnectionOption, widget: SelectBox) {
if (option.onSelectionChange) {
option.onSelectionChange.forEach((event) => {
this._register(widget.onDidSelect(value => {
let selectedValue = value.selected;
this._register(widget.onDidSelect(_ => {
let selectedValue = widget.value;
event?.dependentOptionActions?.forEach((optionAction) => {
let defaultValue: string | undefined = this._customOptions.find(o => o.name === optionAction.optionName)?.defaultValue;
let widget: AdsWidget | undefined = this._findWidget(collections, optionAction.optionName);
Expand Down

0 comments on commit 4244d9f

Please sign in to comment.