Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container.getSpatialNavigationContainer is not a function #226

Open
perqa opened this issue Dec 10, 2021 · 2 comments
Open

container.getSpatialNavigationContainer is not a function #226

perqa opened this issue Dec 10, 2021 · 2 comments

Comments

@perqa
Copy link

perqa commented Dec 10, 2021

Added the polyfill to a web app. Key navigation works for a start, but after some navigation the following error is thrown on every key event:

Uncaught TypeError: container.getSpatialNavigationContainer is not a function
    at navigate (spatial-navigation-polyfill.js:207)
    at spatial-navigation-polyfill.js:110
@Yaffle
Copy link
Contributor

Yaffle commented Dec 11, 2021

What is the last element with focus before this happens?

@perqa
Copy link
Author

perqa commented Dec 12, 2021

Here is one example:

Screenshot 2021-12-12 at 15 19 55

The error seems to occur when navigating down from the top menu into the scroll area, but not immediately. Nothing gets focus in the scroll area, and on the third key press downwards, the error occurs. Scrolling back up again three steps or more doesn't help, as long as the top menu is outside the screen. If use the mouse to bring the top menu into view, the error stops happening, as long as I stay in the top menu.


Some more detailed console.logs of just before until just after the error occurs:
Screenshot 2021-12-15 at 09 21 42

To reproduce, just press arrow down a few times, starting from top menu Movie tab.


On the People tab, spatial navigation works as expected (except there is no visual cue of focus). The DOM structure looks pretty much the same on in the Movie tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants