Skip to content

Commit

Permalink
Correct case and ensure fallback '0' is string (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGoward authored Sep 6, 2024
1 parent 0a3d355 commit ca9d9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrud.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const getFocusables = (scope) => {

return toArray(scope.querySelectorAll(focusableSelector))
.filter(node => !ignoredElements.some(ignored => ignored == node || ignored.contains(node)))
.filter(node => parseInt(node.getAttribute('tabIndex') || 0, 10) > -1);
.filter(node => parseInt(node.getAttribute('tabindex') || '0', 10) > -1);
};

/**
Expand Down

0 comments on commit ca9d9f8

Please sign in to comment.