🐛 Fix bug with connections deleted when node is renamed (#2467)

* fix bug when node is renamed

* update comment

* support touch when dragging
This commit is contained in:
Mutasem Aldmour
2021-11-25 18:41:49 +01:00
committed by GitHub
parent 889921f5fe
commit 5fd3f8a244
2 changed files with 7 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ export const nodeBase = mixins(
type: inputName,
index,
},
enabled: !this.isReadOnly,
enabled: !this.isReadOnly && nodeTypeData.inputs.length > 1, // only enabled for nodes with multiple inputs.. otherwise attachment handled by connectionDrag event in NodeView
dragAllowedWhenFull: true,
dropOptions: {
tolerance: 'touch',