diff --git a/dist/dashboard.appcache b/dist/dashboard.appcache index 23a04beb..5338b787 100644 --- a/dist/dashboard.appcache +++ b/dist/dashboard.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# Time: Mon Oct 26 2020 21:17:31 GMT+0000 (Greenwich Mean Time) +# Time: Mon Oct 26 2020 22:02:56 GMT+0000 (Greenwich Mean Time) CACHE: i18n.js diff --git a/nodes/ui_dropdown.html b/nodes/ui_dropdown.html index 0a35d236..1a8bb946 100644 --- a/nodes/ui_dropdown.html +++ b/nodes/ui_dropdown.html @@ -36,6 +36,9 @@ label: function() { return this.name || (~this.label.indexOf("{{") ? null : this.label) || 'dropdown'; }, labelStyle: function() { return this.name?"node_label_italic":""; }, oneditprepare: function() { + if (this.multiple === undefined) { + $("#node-input-multiple").prop('checked', false);; + } $("#node-input-size").elementSizer({ width: "#node-input-width", height: "#node-input-height", diff --git a/nodes/ui_dropdown.js b/nodes/ui_dropdown.js index 0715d2ba..faaccf3d 100644 --- a/nodes/ui_dropdown.js +++ b/nodes/ui_dropdown.js @@ -4,7 +4,7 @@ module.exports = function(RED) { function DropdownNode(config) { RED.nodes.createNode(this, config); this.pt = config.passthru; - this.multiple = config.multiple; + this.multiple = config.multiple || false; this.state = [" "," "]; var node = this; node.status({});