ref: pr changes

This commit is contained in:
Nicholas Tindle
2025-01-28 16:31:25 +00:00
parent d6b03a4f18
commit 4e7b56b814

View File

@@ -953,10 +953,8 @@ const NodeKeyValueInput: FC<{
>
<div>
{keyValuePairs.map(({ key, value }, index) => (
/*
The `index` is used as a DOM key instead of the actual `key`
because the `key` can change with each input, causing the input to lose focus.
*/
// The `index` is used as a DOM key instead of the actual `key`
// because the `key` can change with each input, causing the input to lose focus.
<div key={index}>
<NodeHandle
keyName={getEntryKey(key)}