diff --git a/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.css b/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.css index 1304c276cc711..37e0d9dbd5e00 100644 --- a/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.css +++ b/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.css @@ -27,7 +27,7 @@ .Name, .NameAnonymous { flex: 0 0 auto; - user-select: none; + cursor: default; } .Name { color: var(--color-dim); @@ -39,7 +39,7 @@ .EditableName { color: var(--color-attribute-name); flex: 0 0 auto; - user-select: none; + cursor: default; } .EditableName:after, .Name:after { @@ -52,6 +52,7 @@ color: var(--color-attribute-value); overflow: hidden; text-overflow: ellipsis; + cursor: default; } .None { diff --git a/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js b/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js index b02e8faa95f39..a59a0cad25950 100644 --- a/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js +++ b/packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js @@ -208,7 +208,9 @@ function HookView({canEditHooks, hook, id, inspectPath, path}: HookViewProps) { {name || 'Anonymous'} {' '} {/* $FlowFixMe */} - {displayValue} + + {displayValue} + ); } else { @@ -165,7 +169,11 @@ export default function KeyValue({ onClick={hasChildren ? toggleIsOpen : undefined}> {name} - {displayName} + + {displayName} + , ); } else { @@ -211,7 +219,11 @@ export default function KeyValue({ onClick={hasChildren ? toggleIsOpen : undefined}> {name} - {displayName} + + {displayName} + , ); }