浏览代码

Fix nme inputs rerender

David Catuhe 5 年之前
父节点
当前提交
e1f28e66d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

+ 1 - 1
nodeEditor/src/components/propertyTab/propertyTabComponent.tsx

@@ -73,7 +73,7 @@ export class PropertyTabComponent extends React.Component<IPropertyTabComponentP
             case NodeMaterialBlockConnectionPointTypes.Float:
                     let cantDisplaySlider = (isNaN(block.min) || isNaN(block.max) || block.min === block.max);
                     return (
-                        <div key={block.name}>                            
+                        <div key={block.uniqueId} >                            
                             {
                                 block.isBoolean &&
                                 <CheckBoxLineComponent key={block.uniqueId} label={block.name} target={block} propertyName="value"