Fix TV dpad focus issues if the body of the page is the focused element.

This commit is contained in:
Bradley Eaton
2025-08-15 15:55:27 +01:00
parent 261536a671
commit 75f18a2853

View File

@@ -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;
}