Skip to content

Commit

Permalink
a11y(scrollbar): change tabindex to -1
Browse files Browse the repository at this point in the history
Fix #152
  • Loading branch information
idiotWu committed Apr 21, 2018
1 parent 8171ddd commit ed9c278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrollbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class Scrollbar implements I.Scrollbar {
containerEl.setAttribute('data-scrollbar', 'true');

// make container focusable
containerEl.setAttribute('tabindex', '1');
containerEl.setAttribute('tabindex', '-1');
setStyle(containerEl, {
overflow: 'hidden',
outline: 'none',
Expand Down

0 comments on commit ed9c278

Please sign in to comment.