From 75f18a285381959d0003169047d6068ea917ca8d Mon Sep 17 00:00:00 2001 From: Bradley Eaton Date: Fri, 15 Aug 2025 15:55:27 +0100 Subject: [PATCH] Fix TV dpad focus issues if the body of the page is the focused element. --- src/components/focusManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/focusManager.js b/src/components/focusManager.js index 22252af4cf..bcb7c06aff 100644 --- a/src/components/focusManager.js +++ b/src/components/focusManager.js @@ -239,7 +239,7 @@ function nav(activeElement, direction, container, focusableElements) { container = container || (activeElement ? getFocusContainer(activeElement, direction) : getDefaultScope()); - if (!activeElement) { + if (!activeElement || activeElement == document.body) { autoFocus(container, true, false); return; }