Update SearchItem.tsx (#42783)

This commit is contained in:
Ashley Harrison
2021-12-06 14:14:56 +00:00
committed by GitHub
parent 7c3565379a
commit 0388082768
@@ -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]