Skip to content

Commit d575a48

Browse files
committed
Update filebrowser.js
1 parent f2cbb83 commit d575a48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

filebrowser.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,8 +890,10 @@ sidebar.addEventListener('scroll', () => {
890890

891891
const moreButton = fileWrapper.querySelector('.item.more');
892892

893-
// if 'more' button exists
894-
if (moreButton) {
893+
// if more button exists
894+
// and is not disabled (loading more)
895+
if (moreButton &&
896+
!moreButton.classList.contains('disabled')) {
895897

896898
const maxScroll = sidebar.scrollHeight - sidebar.clientHeight;
897899

0 commit comments

Comments
 (0)