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