Skip to content

Commit

Permalink
Don't check ports match within node (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Jun 16, 2021
1 parent 142276a commit af4356d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ qx.Class.define("osparc.component.form.renderer.PropForm", {
this.__createDropMechanism(item, item.key);

// Notify focus and focus out
const msgDataFn = (nodeId, portId) => this.__arePortsCompatible(nodeId, portId, this.getNode().getNodeId(), item.key);
const msgDataFn = (nodeId, portId) => {
if (nodeId === this.getNode().getNodeId()) {
return false;
}
return this.__arePortsCompatible(nodeId, portId, this.getNode().getNodeId(), item.key);
};

item.addListener("focus", () => {
if (this.getNode()) {
Expand Down

0 comments on commit af4356d

Please sign in to comment.