refactor(edges): dont add width and height params

This commit is contained in:
moklick
2019-07-25 00:27:00 +02:00
parent e496cbe795
commit dbb178b222
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ export default NodeComponent => (props) => {
<div
className={nodeClasses}
ref={nodeElement}
style={{ transform: `translate(${position.x}px,${position.y}px)` }}
style={{ zIndex: selected ? 10 : 3, transform: `translate(${position.x}px,${position.y}px)` }}
onClick={(e) => {
if (isInputTarget(e)) {
return false;