Skip to content

Commit

Permalink
#290 ESLint: Fix jsx-a11y/role-has-required-aria-props
Browse files Browse the repository at this point in the history
  • Loading branch information
zaki-yama committed Mar 25, 2019
1 parent 60f4f5b commit 8830614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
'react/button-has-type': 2,
'jsx-a11y/click-events-have-key-events': 1,
'jsx-a11y/no-noninteractive-tabindex': 2,
'jsx-a11y/role-has-required-aria-props': 1,
'jsx-a11y/role-has-required-aria-props': 2,
'jsx-a11y/anchor-is-valid': 1,
'jsx-a11y/interactive-supports-focus': 1,
'jsx-a11y/label-has-associated-control': 1
Expand Down
1 change: 1 addition & 0 deletions src/scripts/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ class LookupCandidateList extends Component {
className='slds-lookup__item-action react-slds-candidate'
tabIndex={-1}
role='option'
aria-selected={false}
onKeyDown={(e) => e.keyCode === 13 && this.onSelect(entry)}
onBlur={this.props.onBlur}
onClick={() => this.onSelect(entry)}
Expand Down

0 comments on commit 8830614

Please sign in to comment.