Skip to content

Commit

Permalink
fix(Select): reset role to menu. Close #326
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed Feb 21, 2019
1 parent b546f05 commit 1ba6d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/select/base.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ export default class Base extends React.Component {

const menuProps = {
children,
role: 'listbox',
style: autoWidth ? { width: this.width } : { minWidth: this.width },
selectedKeys,
focusedKey: highlightKey,
Expand Down Expand Up @@ -480,6 +481,7 @@ export default class Base extends React.Component {
);
} else {
const itemProps = {
role: 'option',
key: item.value,
className: `${prefix}select-menu-item`,
disabled: item.disabled
Expand Down

0 comments on commit 1ba6d5e

Please sign in to comment.