diff --git a/Resources/Private/JavaScript/core/src/components/PropertyListItem.tsx b/Resources/Private/JavaScript/core/src/components/PropertyListItem.tsx index a5862a2ac..b7a2be393 100644 --- a/Resources/Private/JavaScript/core/src/components/PropertyListItem.tsx +++ b/Resources/Private/JavaScript/core/src/components/PropertyListItem.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { useCallback, useRef } from 'react'; interface PropertyListItemProps { label: string; @@ -6,10 +6,17 @@ interface PropertyListItemProps { } const PropertyListItem: React.FC = ({ label, value }: PropertyListItemProps) => { + const ref = useRef(null); + const handleClick = useCallback(() => { + ref.current && window.getSelection().selectAllChildren(ref.current); + }, [ref]); + return ( <>
{label}
-
{value}
+
+ {value} +
); };