We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c67968 commit 470d8dfCopy full SHA for 470d8df
spotlightsearch.js
@@ -69,6 +69,18 @@ searchInput.addEventListener('blur', () => {
69
70
searchInput.search = () => {
71
72
+ const moreButton = fileWrapper.querySelector('.item.more');
73
+
74
+ // if more button is disabled (loading more items),
75
+ // don't search
76
+ if (moreButton &&
77
+ moreButton.classList.contains('disabled')) {
78
79
+ return;
80
81
+ }
82
83
84
if (searchInput.innerHTML === '<br>') {
85
86
searchInput.textContent = '';
@@ -120,8 +132,6 @@ searchInput.search = () => {
120
132
}
121
133
122
134
123
- const moreButton = fileWrapper.querySelector('.item.more');
124
-
125
135
// if more button exists
126
136
if (moreButton) {
127
137
0 commit comments