Skip to content

Commit

Permalink
add TODO #2025
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Aug 18, 2023
1 parent f59068d commit b19eace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/src/copyable_text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b19eace

Please sign in to comment.