Skip to content

Commit

Permalink
Forget about selected result from old search
Browse files Browse the repository at this point in the history
When selecting a result from the result list and then performing a new search, that result is still remembered as being selected, i.e. hitting enter will open it although it has nothing to do with the new search.
Forget about the selected result when performing a new search.
  • Loading branch information
flbraun committed Nov 11, 2023
1 parent 61d72cc commit e04b1f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const makePalette = (searchInput, resultlist) => {
searchInput.addEventListener('input', () => {
// clear previous search results
resultlist.replaceChildren()
selectedResult = null

// prepare search
let term = searchInput.value.trim()
Expand Down

0 comments on commit e04b1f4

Please sign in to comment.