Accessibility: Screen Reader Thinks SelectBox is a Button on Mac (#6216)

* Stop reading dropdowns as buttons for mac

* Remove role of combobox for sql selectbox
This commit is contained in:
Chris LaFreniere
2019-07-01 13:46:06 -07:00
committed by GitHub
parent 3e68c3ee0c
commit bae573453a

View File

@@ -83,9 +83,6 @@ export class SelectBox extends vsSelectBox {
this.element = dom.append(container, $('.monaco-selectbox.idle'));
}
// explicitly set the accessible role so that the screen readers can read the control type properly
this.selectElement.setAttribute('role', 'combobox');
this._selectBoxOptions = selectBoxOptions;
let focusTracker = dom.trackFocus(this.selectElement);
this._register(focusTracker);