diff --git a/ui/src/copyable_text.tsx b/ui/src/copyable_text.tsx index 4ac8b748e5..f64e3d8c7c 100644 --- a/ui/src/copyable_text.tsx +++ b/ui/src/copyable_text.tsx @@ -105,6 +105,7 @@ export const ClipboardCopyButton = ({ value, anchorElement, showOnHoverOnly = fa React.useEffect(() => { if (!anchorElement) return if (portal) { + // TODO: Prevent multiple portals from being created, e.g. when showOnHoverOnly prop changes. ReactDOM.render( ReactDOM.createPortal(CopyButton, anchorElement), document.createElement('div')