Skip to content

Commit

Permalink
Merge 59c835c into ea323e1
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Sep 19, 2019
2 parents ea323e1 + 59c835c commit e82e966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instanceMethods/keydown-handler.js
Expand Up @@ -20,7 +20,7 @@ export const addKeydownHandler = (instance, globalState, innerParams, dismissWit

// Focus handling
export const setFocus = (innerParams, index, increment) => {
const focusableElements = dom.getFocusableElements(innerParams.focusCancel)
const focusableElements = dom.getFocusableElements()
// search for visible elements and select the next possible match
for (let i = 0; i < focusableElements.length; i++) {
index = index + increment
Expand Down Expand Up @@ -92,7 +92,7 @@ const handleEnter = (instance, e, innerParams) => {
const handleTab = (e, innerParams) => {
const targetElement = e.target

const focusableElements = dom.getFocusableElements(innerParams.focusCancel)
const focusableElements = dom.getFocusableElements()
let btnIndex = -1
for (let i = 0; i < focusableElements.length; i++) {
if (targetElement === focusableElements[i]) {
Expand Down

0 comments on commit e82e966

Please sign in to comment.