@primer/react 0.0.0-20260223174400 → 0.0.0-20260223175050
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.
package/CHANGELOG.md
CHANGED
|
@@ -179,13 +179,13 @@ function getPreviousVisibleElement(element) {
|
|
|
179
179
|
* is also an expanded directory, we drill all the way down.
|
|
180
180
|
*/
|
|
181
181
|
function getDeepestLastDescendant(element) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
let current = element;
|
|
183
|
+
while (current.getAttribute('aria-expanded') === 'true') {
|
|
184
|
+
const lastChild = getLastChildTreeItem(current);
|
|
185
|
+
if (!lastChild) break;
|
|
186
|
+
current = lastChild;
|
|
187
187
|
}
|
|
188
|
-
return
|
|
188
|
+
return current;
|
|
189
189
|
}
|
|
190
190
|
function getNextSiblingTreeItem(element) {
|
|
191
191
|
let sibling = element.nextElementSibling;
|
package/package.json
CHANGED