diff --git a/packages/client/components/ScopingSearchResultItem.tsx b/packages/client/components/ScopingSearchResultItem.tsx index 819571522e0..d619ae8a7a3 100644 --- a/packages/client/components/ScopingSearchResultItem.tsx +++ b/packages/client/components/ScopingSearchResultItem.tsx @@ -66,6 +66,7 @@ const ScopingSearchResultItem = (props: Props) => { const {onCompleted, onError, submitMutation} = useMutationProps() const disabled = !isSelected && usedServiceTaskIds.size >= Threshold.MAX_POKER_STORIES const isTemp = isTempId(serviceTaskId) + const onClick = () => { if (disabled || isTemp) return submitMutation() @@ -85,12 +86,24 @@ const ScopingSearchResultItem = (props: Props) => { persistQuery?.() } } + + const handleLinkClick = (e: React.MouseEvent) => { + // don't propagate or the checkbox will be toggled + e.stopPropagation() + } + return ( {summary} - + {linkText} {isTemp && }