Skip to content

Commit

Permalink
fix #91
Browse files Browse the repository at this point in the history
  • Loading branch information
fr0tt committed Nov 3, 2023
1 parent 40619d3 commit e8c6b32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/js/components/Searchbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default {
}
if (input.length === 0) {
this.options = []
const entries = this.collections.entries()
for (let i = 0; i < 4 && i < this.collections.size; i++) {
const collection = entries.next().value
Expand All @@ -105,6 +106,7 @@ export default {
this.showOptions = true
document.querySelector('#app').addEventListener('click', this.hideResults)
}
this.lastSearchLength = input.length
},
hideResults(event) {
if (document.querySelector('#search') == event.target) {
Expand Down

0 comments on commit e8c6b32

Please sign in to comment.