mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2025-09-10 22:43:50 +02:00
Merge pull request #7098 from brad1111/fix-tv-focus-issues
Fix TV dpad focus issues if the body of the page is the focused element.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user