Skip to content

Commit 5c67968

Browse files
committed
Update spotlightsearch.js
1 parent d7d1380 commit 5c67968

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spotlightsearch.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,22 @@ searchInput.search = () => {
119119

120120
}
121121

122+
123+
const moreButton = fileWrapper.querySelector('.item.more');
124+
125+
// if more button exists
126+
if (moreButton) {
127+
128+
// if more button is in view
129+
if (elInView(moreButton)) {
130+
131+
// load more items
132+
clickedOnMoreButtonHTML(moreButton);
133+
134+
}
135+
136+
}
137+
122138
}
123139

124140
// search when typed in input

0 commit comments

Comments
 (0)