]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/auto-suggest.js
Fixed local_secure_restricted preventing attachment uploads
[bookstack] / resources / js / components / auto-suggest.js
index 68de49b4a32740143e7fc6fe24e442c0e502af5e..d1c15c00a7e604742d566cdd80b280fd11f82135 100644 (file)
@@ -131,7 +131,7 @@ class AutoSuggest {
             return this.hideSuggestions();
         }
 
-        this.list.innerHTML = suggestions.map(value => `<li><button type="button">${escapeHtml(value)}</button></li>`).join('');
+        this.list.innerHTML = suggestions.map(value => `<li><button type="button" class="text-item">${escapeHtml(value)}</button></li>`).join('');
         this.list.style.display = 'block';
         for (const button of this.list.querySelectorAll('button')) {
             button.addEventListener('blur', this.hideSuggestionsIfFocusedLost.bind(this));