Break ScrollableList component into parts (#38059)
This commit is contained in:
1 parent
3fbb7424fa
commit
a70079968c
11 files changed
+219
-93
No files matched your search
@@ -169,7 +169,9 @@ export function focusItemSibling(index: number, direction: 1 | -1) {
|
||||
}
|
||||
|
||||
// Check if the sibling is a post or a 'follow suggestions' widget
|
||||
let targetElement = siblingItem.querySelector<HTMLElement>('.focusable');
|
||||
let targetElement = siblingItem.matches('.focusable')
|
||||
? siblingItem
|
||||
: siblingItem.querySelector<HTMLElement>('.focusable');
|
||||
|
||||
// Otherwise, check if the item is a 'load more' button.
|
||||
if (!targetElement && siblingItem.matches('.load-more')) {
|
||||
|
||||
Reference in new issue
Block a user