mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Update src/internal/tabbable.ts
Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
This commit is contained in:
@@ -88,7 +88,7 @@ export function getTabbableElements(root: HTMLElement | ShadowRoot) {
|
||||
}
|
||||
|
||||
/**
|
||||
* This looks funky. Basically a slots children will always be picked up *if* they're within the `root` element.
|
||||
* This looks funky. Basically a slot's children will always be picked up *if* they're within the `root` element.
|
||||
* However, there is an edge case when, if the `root` is wrapped by another shadow DOM, it won't grab the children.
|
||||
* This fixes that fun edge case.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user