tabbable breaks when processing an element with a "scope" attribute
See original GitHub issueI have a situation where a TH element has both scope="col"
and tabindex="0"
attributes, which is causing Tabbable to break with "Cannot read properties of undefined (reading ‘forEach’).
index.js:425 Uncaught TypeError: Cannot read properties of undefined (reading ‘forEach’) at e (index.js:425:14) at index.js:429:32 at Array.forEach (<anonymous>) at e (index.js:425:14) at e.tabbable (index.js:473:10)
Tabbable appears to be evaluating !! item.scope
as true because the attribute is present, and assumes there is a ShadowRoot to process.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Using the scope attribute to associate header cells and ... - W3C
The scope identifies whether the cell is a header for a row, column, or group of rows or columns. The values row ,...
Read more >ANDI - Alerts - SSA
ANDI's Table Analysis Mode is set to "scope" and this element has a scope attribute but the value is invalid. If scope associations...
Read more >page-break-after - CSS: Cascading Style Sheets | MDN
The page-break-after CSS property adjusts page breaks after the current element. This property applies to block elements that generate a box.
Read more >The autofocus attribute - HTML Standard - whatwg
It contains all elements in owner 's focus navigation scope that are themselves focus navigation scope owners, except the elements whose ...
Read more >Tag Helpers in ASP.NET Core | Microsoft Learn
Tag Helpers scope is controlled by a combination of @addTagHelper ... Tag Helpers do not allow C# in the element's attribute or tag ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, this was fixed in tababble v6.0.1
@stefcameron
I’ve put up a pull request to add @les-lim! 🎉