Skip to content

Commit

Permalink
Set tabIndex unreachable for invalid block
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jul 18, 2017
1 parent 4b539e7 commit 52a026f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class VisualEditorBlock extends Component {
onMouseLeave={ onMouseLeave }
className={ wrapperClassname }
data-type={ block.name }
tabIndex="0"
tabIndex={ isValid ? 0 : -1 }
aria-label={ blockLabel }
{ ...wrapperProps }
>
Expand Down

0 comments on commit 52a026f

Please sign in to comment.