-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Inserter: Cannot read property 'focus' of null/undefined #1606
Comments
Just ran into this as well:
The logic flaw is inside When you're on the "Recent" tab, the So when I see this (with focus on "Cover Image"): And when I hit tab, it looks for "Pullquote", which theoretically is next in line: Of course, that doesn't work. The same happens when you're already focused on the last element in the list in the "All" tab. It then looks for embed blocks in the list. Proposed solution: When the last element is reached, focus should go to the tabs. Even better: Use arrow keys instead of tabs to navigate the blocks. This way you can jump from search to tabs by simply pressing tab twice. |
ideally, this should happen inside the category groups with |
No errors for me. It's probably fixed elsewhere. |
Yeah, cannot reproduce. |
On lates master, I get 2 JS errors in the console while tabbing through the inserter items. To reproduce, for example:
On the first Tab presses I get::
Uncaught TypeError: Cannot read property 'focus' of null
after a few Tab presses I get:
Uncaught TypeError: Cannot read property 'focus' of undefined
Same happens also on the first/second Tabs in a slightly different way. Same when using arrow navigation (press right/arrow keys instead of Tab).
Also, the new "tabs" added at the bottom can't be navigated using the keyboard.
Maybe related: #1582
The text was updated successfully, but these errors were encountered: