mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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) {
|
if (this._sqlOptions.ariaDescription) {
|
||||||
this.inputElement.setAttribute('aria-description', 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 {
|
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.element = dom.append(container, $('.monaco-selectbox.idle'));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.selectElement.id = id;
|
if (id !== undefined) {
|
||||||
|
this.selectElement.id = id;
|
||||||
|
}
|
||||||
this._selectBoxOptions = selectBoxOptions;
|
this._selectBoxOptions = selectBoxOptions;
|
||||||
let focusTracker = dom.trackFocus(this.selectElement);
|
let focusTracker = dom.trackFocus(this.selectElement);
|
||||||
this._register(focusTracker);
|
this._register(focusTracker);
|
||||||
|
|||||||
Reference in New Issue
Block a user