Skip to content

Commit

Permalink
Merge pull request #301 from samvera-labs/fix-tab-nav
Browse files Browse the repository at this point in the history
Fix keyboard navigation for the tabbed view in demo site
  • Loading branch information
Dananji authored Nov 29, 2023
2 parents c706910 + 0f74dbf commit 29fccfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const Tabs = ({ tabValues, manifestUrl }) => {
};

const handleKeyPress = (event) => {
const tabCount = Object.keys(tabValues).length;
const tabCount = Object.keys(tabValues).length - 1;

if (event.key === "ArrowLeft") {
const last = tabCount;
Expand Down

0 comments on commit 29fccfa

Please sign in to comment.