diff --git a/docs/nodes/widgets/ui-dropdown.md b/docs/nodes/widgets/ui-dropdown.md
index 1ce6f3bfb..c025fbf0e 100644
--- a/docs/nodes/widgets/ui-dropdown.md
+++ b/docs/nodes/widgets/ui-dropdown.md
@@ -20,6 +20,8 @@ props:
dynamic: false
Allow Search:
description: Allows user to type a new value, filtering the list of possible values to choose.
+ Msg trigger:
+ description: Specify when an output message should be send. On every change or when the dropdown is closed.
dynamic:
Label:
payload: msg.ui_update.label
@@ -33,6 +35,9 @@ dynamic:
Class:
payload: msg.ui_update.class
structure: ["String"]
+ Msg trigger:
+ payload: msg.ui_update.msgTrigger
+ structure: ["String"]
---
diff --git a/nodes/widgets/ui_dropdown.html b/nodes/widgets/ui_dropdown.html
index 5c06df3fd..f93e38448 100644
--- a/nodes/widgets/ui_dropdown.html
+++ b/nodes/widgets/ui_dropdown.html
@@ -40,7 +40,8 @@
topicType: { value: 'msg' },
className: { value: '' },
// This field controls if the used component is going to be a `v-combox` or a `v-select`, `v-combox` allows typing and filtering possible values
- typeIsComboBox: { value: true }
+ typeIsComboBox: { value: true },
+ msgTrigger: { value: 'onChange' }
},
inputs: 1,
outputs: 1,
@@ -61,6 +62,9 @@
if (this.typeIsComboBox === undefined) {
$('#node-input-typeIsComboBox').prop('checked', true)
}
+ if (this.msgTrigger === undefined) {
+ $('#node-input-msgTrigger').val('onChange')
+ }
// if this groups parent is a subflow template, set the node-config-input-width and node-config-input-height up
// as typedInputs and hide the elementSizer (as it doesn't make sense for subflow templates)
if (RED.nodes.subflow(this.z)) {
@@ -222,6 +226,13 @@