Skip to content

Commit

Permalink
Fix for week number tabIndex when onWeekClick is not defined (gpbl#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
heralden authored and gpbl committed Feb 21, 2019
1 parent d408fe2 commit afe7da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Month.js
Expand Up @@ -189,7 +189,7 @@ export default class Month extends Component {
{showWeekNumbers && (
<div
className={classNames.weekNumber}
tabIndex={0}
tabIndex={onWeekClick ? 0 : -1}
role="gridcell"
onClick={
onWeekClick
Expand Down

0 comments on commit afe7da6

Please sign in to comment.