From 0f74dbf000dd42c44b684fb5c1cad68b32302885 Mon Sep 17 00:00:00 2001 From: dananji Date: Wed, 29 Nov 2023 14:49:43 -0500 Subject: [PATCH] Fix keyboard navigation for the tabbed view in demo site --- demo/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/app.js b/demo/app.js index cd8b92da..b0cc105a 100644 --- a/demo/app.js +++ b/demo/app.js @@ -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;