Update SearchItem.tsx (#42783) (#42786)

(cherry picked from commit 0388082768)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-12-06 15:51:51 +01:00
committed by GitHub
co-authored by Ashley Harrison
parent 22bec079b4
commit 0023a01670
@@ -29,6 +29,8 @@ export const SearchItem: FC<Props> = ({ item, editable, onToggleChecked, onTagSe
const styles = useStyles2(getStyles);
const tagSelected = useCallback(
(tag: string, event: React.MouseEvent<HTMLElement>) => {
event.stopPropagation();
event.preventDefault();
onTagSelected(tag);
},
[onTagSelected]