@brightspace-ui/core 2.132.3 → 2.132.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -413,16 +413,18 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
|
|
|
413
413
|
while (previousElement) {
|
|
414
414
|
if (previousElement.role === 'rowgroup') {
|
|
415
415
|
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
if (
|
|
421
|
-
|
|
416
|
+
let nestedList;
|
|
417
|
+
do {
|
|
418
|
+
// this check needs to account for standard list-items as well as custom
|
|
419
|
+
nestedList = previousElement.querySelector('[slot="nested"]') || previousElement.shadowRoot.querySelector('d2l-list');
|
|
420
|
+
if (nestedList) {
|
|
421
|
+
const nestedListItems = [...nestedList.children].filter(node => node.role === 'rowgroup');
|
|
422
|
+
if (nestedListItems.length) {
|
|
423
|
+
previousElement = nestedListItems[nestedListItems.length - 1];
|
|
424
|
+
}
|
|
422
425
|
}
|
|
423
|
-
}
|
|
426
|
+
} while (nestedList);
|
|
424
427
|
return previousElement;
|
|
425
|
-
|
|
426
428
|
}
|
|
427
429
|
previousElement = previousElement.previousElementSibling;
|
|
428
430
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.132.
|
|
3
|
+
"version": "2.132.4",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|