From 0023a01670ee1fa06403a5f314ffe7d0c3152d03 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 6 Dec 2021 14:51:51 +0000 Subject: [PATCH] Update SearchItem.tsx (#42783) (#42786) (cherry picked from commit 03880827684f9380f098ecb2622867323d381b48) Co-authored-by: Ashley Harrison --- public/app/features/search/components/SearchItem.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/search/components/SearchItem.tsx b/public/app/features/search/components/SearchItem.tsx index 57743ea0547..6cf87e9a950 100644 --- a/public/app/features/search/components/SearchItem.tsx +++ b/public/app/features/search/components/SearchItem.tsx @@ -29,6 +29,8 @@ export const SearchItem: FC = ({ item, editable, onToggleChecked, onTagSe const styles = useStyles2(getStyles); const tagSelected = useCallback( (tag: string, event: React.MouseEvent) => { + event.stopPropagation(); + event.preventDefault(); onTagSelected(tag); }, [onTagSelected]