port vscode changes (#19754)

* add aria-description support for selectbox

* type check
This commit is contained in:
Alan Ren
2022-06-16 13:24:35 -07:00
committed by GitHub
parent e24f316ab7
commit 31dea2f5ee
3 changed files with 1 additions and 3 deletions

View File

@@ -36,7 +36,6 @@ export class SelectBoxNative extends Disposable implements ISelectBoxDelegate {
this.selectElement.setAttribute('aria-label', this.selectBoxOptions.ariaLabel);
}
// {{SQL CARBON EDIT}}
if (typeof this.selectBoxOptions.ariaDescription === 'string') {
this.selectElement.setAttribute('aria-description', this.selectBoxOptions.ariaDescription);
}