mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
fix[react-devtools]: wrap key string in preformatted text html element (#31153)
Fixes https://github.com/facebook/react/issues/28984.
This commit is contained in:
@@ -166,7 +166,7 @@ export default function Element({data, index, style}: Props): React.Node {
|
||||
className={styles.KeyValue}
|
||||
title={key}
|
||||
onDoubleClick={handleKeyDoubleClick}>
|
||||
{key}
|
||||
<pre>{key}</pre>
|
||||
</span>
|
||||
"
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user