Skip to content

Commit bc4edc5

Browse files
authored
Use blank role for custom selectbox on macOS (microsoft#183460)
Acts as a workaround for and fixes microsoft#180115
1 parent 81bb68f commit bc4edc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/browser/ui/selectBox/selectBoxCustom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ export class SelectBoxList extends Disposable implements ISelectBoxDelegate, ILi
742742
return label;
743743
},
744744
getWidgetAriaLabel: () => localize({ key: 'selectBox', comment: ['Behave like native select dropdown element.'] }, "Select Box"),
745-
getRole: () => 'option',
745+
getRole: () => isMacintosh ? '' : 'option',
746746
getWidgetRole: () => 'listbox'
747747
}
748748
});

0 commit comments

Comments
 (0)