Skip to content

Commit

Permalink
fix: remove superfluous arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte committed Sep 19, 2019
1 parent ea323e1 commit 59c835c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instanceMethods/keydown-handler.js
Original file line number Diff line number Diff line change
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 59c835c

Please sign in to comment.