Skip to content

Commit

Permalink
fix(search-pro): fix issue when removing history item
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 27, 2022
1 parent 7458e94 commit a349c4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/search-pro/src/client/components/SearchResult.ts
Expand Up @@ -189,6 +189,7 @@ export default defineComponent({
},
],
onClick: () => {
console.log("click");
resetSearchResult();
},
},
Expand All @@ -205,8 +206,9 @@ export default defineComponent({
{
class: "search-pro-close-icon",
onClick: (event: Event) => {
removeHistory(historyIndex);
event.preventDefault();
event.stopPropagation();
removeHistory(historyIndex);
},
},
h(CloseIcon)
Expand Down

0 comments on commit a349c4d

Please sign in to comment.