X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6..be95b4bea57430f607e757df9b84eb415809474d:/services/workbench2/src/views-components/resource-properties-form/property-chip.tsx

diff --git a/services/workbench2/src/views-components/resource-properties-form/property-chip.tsx b/services/workbench2/src/views-components/resource-properties-form/property-chip.tsx
index 24b5c0a96d..cfdae3fe83 100644
--- a/services/workbench2/src/views-components/resource-properties-form/property-chip.tsx
+++ b/services/workbench2/src/views-components/resource-properties-form/property-chip.tsx
@@ -43,10 +43,12 @@ export const PropertyChipComponent = connect(mapStateToProps, mapDispatchToProps
     ({ propKey, propValue, vocabulary, className, onCopy, onDelete }: PropertyChipComponentProps) => {
         const label = `${getTagKeyLabel(propKey, vocabulary)}: ${getTagValueLabel(propKey, propValue, vocabulary)}`;
         return (
-            <CopyToClipboard key={propKey} text={label} onCopy={() => onCopy("Copied to clipboard")}>
-                <Chip onDelete={onDelete} key={propKey}
-                    className={className} label={label} />
-            </CopyToClipboard>
+            <span onClick={(ev)=>ev.stopPropagation()}>
+                <CopyToClipboard key={propKey} text={label} onCopy={() => onCopy("Copied to clipboard")}>
+                    <Chip onDelete={onDelete} key={propKey}
+                        className={className} label={label} />
+                </CopyToClipboard>
+            </span>
         );
     }
 );
