diff --git a/nodes/widgets/ui_dropdown.html b/nodes/widgets/ui_dropdown.html index 458a3f165..1b8c1c072 100644 --- a/nodes/widgets/ui_dropdown.html +++ b/nodes/widgets/ui_dropdown.html @@ -24,7 +24,7 @@ } }, height: { value: 0 }, - passthru: { value: true }, + passthru: { value: false }, multiple: { value: false }, options: { value: [{ value: '', label: '' }], @@ -187,10 +187,10 @@ - +
diff --git a/nodes/widgets/ui_dropdown.js b/nodes/widgets/ui_dropdown.js index ab73d455a..f5103a28d 100644 --- a/nodes/widgets/ui_dropdown.js +++ b/nodes/widgets/ui_dropdown.js @@ -9,7 +9,12 @@ module.exports = function (RED) { const group = RED.nodes.getNode(config.group) const evts = { - onChange: true + onChange: true, + onInput: function (msg, send) { + if (config.passthru) { + send(msg) + } + } } // inform the dashboard UI that we are adding this node