Skip to content

Commit

Permalink
Merge pull request #74 from flowforge/msg-send
Browse files Browse the repository at this point in the history
msg.send() in action/change, rather than msg.receive()
  • Loading branch information
joepavitt authored Jul 27, 2023
2 parents dde138a + 0b9f367 commit ae9330d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/config/ui_base.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ module.exports = function(RED) {
wNode._msg = msg

// simulate Node-RED node receiving an input
wNode.receive(msg)
wNode.send(msg)
}

// listen to in-UI events that Node-RED may need to action
Expand All @@ -331,7 +331,7 @@ module.exports = function(RED) {

console.log('conn:' + conn.id, 'on:widget-action:' + widget.id)
// simulate Node-RED node receiving an input as to trigger on('input)
wNode.receive(evt)
wNode.send(evt)
})
})
ui.events.action[widget.id] = true
Expand Down

0 comments on commit ae9330d

Please sign in to comment.