mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 09:35:38 -05:00
fix input element id (#23066)
This commit is contained in:
@@ -75,7 +75,10 @@ export class InputBox extends vsInputBox implements AdsWidget {
|
||||
if (this._sqlOptions.ariaDescription) {
|
||||
this.inputElement.setAttribute('aria-description', this._sqlOptions.ariaDescription);
|
||||
}
|
||||
this.inputElement.id = id;
|
||||
|
||||
if (id !== undefined) {
|
||||
this.inputElement.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
public override style(styles: IInputBoxStyles): void {
|
||||
|
||||
@@ -99,7 +99,9 @@ export class SelectBox extends vsSelectBox implements AdsWidget {
|
||||
this.element = dom.append(container, $('.monaco-selectbox.idle'));
|
||||
}
|
||||
|
||||
this.selectElement.id = id;
|
||||
if (id !== undefined) {
|
||||
this.selectElement.id = id;
|
||||
}
|
||||
this._selectBoxOptions = selectBoxOptions;
|
||||
let focusTracker = dom.trackFocus(this.selectElement);
|
||||
this._register(focusTracker);
|
||||
|
||||
Reference in New Issue
Block a user