From 6a57d25f4a79db96bf552b2dd04c9ac7f0dcbc78 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 17 May 2019 11:45:16 +0100 Subject: [PATCH] Trigger change evnt on typedInput when type changes and options present Fixes #2160 --- .../@node-red/editor-client/src/js/ui/common/typedInput.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js index accfff6dd..1b18968bf 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js @@ -159,11 +159,11 @@ that.uiSelect.css("margin"+d,m); that.input.css("margin"+d,0); }); - + ["type","placeholder"].forEach(function(d) { var m = that.element.attr(d); that.input.attr(d,m); - }); + }); this.uiSelect.addClass("red-ui-typedInput-container"); @@ -635,6 +635,7 @@ } } } + this.input.trigger('change',this.propertyType,this.value()); } else { if (this.optionSelectTrigger) { this.optionSelectTrigger.hide();