Closed NickGoward closed 5 years ago
Thanks for raising to our attention! And cheers for raising the issue with reproducible test scenarios 👍 Unfortunately, we don't have capacity to tackle this at the minute. Feel free to raise a PR though? if you wanna do a PR, one of us (LH 🐴 ) can definitely spare some time to go over stuff or whatever
Describe the bug When a node contains no focusable items, LRUD throws an error when trying to find an appropriate focusable item.
Case 1 - initial focus
To Reproduce
Expected behavior Should focus on
item2
but instead throws error:Uncaught TypeError: Cannot read property 'id' of undefined
Case 2 - moving to empty node
To Reproduce
Expected behavior Should remain focused on
item1
but instead throws error:Uncaught TypeError: Cannot read property 'id' of undefined
Case 3 - moving past empty node to item beyond it
To Reproduce
Expected behavior Should focus on
item3
but instead throws error:Uncaught TypeError: Cannot read property 'id' of undefined