Skip to content

Commit

Permalink
#290 ESLint: Partially disable jsx-a11y/no-noninteractive-tabindex
Browse files Browse the repository at this point in the history
…with comment
  • Loading branch information
zaki-yama committed Mar 25, 2019
1 parent d9e0fbf commit 60f4f5b
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 @@ -45,7 +45,7 @@ module.exports = {
'react/no-array-index-key': 2,
'react/button-has-type': 2,
'jsx-a11y/click-events-have-key-events': 1,
'jsx-a11y/no-noninteractive-tabindex': 1,
'jsx-a11y/no-noninteractive-tabindex': 2,
'jsx-a11y/role-has-required-aria-props': 1,
'jsx-a11y/anchor-is-valid': 1,
'jsx-a11y/interactive-supports-focus': 1,
Expand Down
1 change: 1 addition & 0 deletions src/scripts/Datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ export default class Datepicker extends Component {
>
<span
className='slds-day'
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex={selectable ? 0 : -1}
onClick={selectable ? this.onDateClick.bind(this, d.value) : null}
onKeyDown={selectable ? this.onDateKeyDown.bind(this, d.value) : null}
Expand Down

0 comments on commit 60f4f5b

Please sign in to comment.