Skip to content

Commit

Permalink
fix: stop propagation when selecting history entities
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Feb 20, 2024
1 parent 42ea468 commit 932fdd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/search/js/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export default class Renderer {
this.getContainer().querySelectorAll('.search-history').forEach((ele) => {
ele.addEventListener('click', (e) => {
e.preventDefault()
e.stopPropagation()
document.dispatchEvent(new CustomEvent('search:input:change', {
detail: {
value: ele.getAttribute('data-query')
Expand Down

0 comments on commit 932fdd2

Please sign in to comment.