From 97e789538e61847a54cf08def12eaa42972bd538 Mon Sep 17 00:00:00 2001 From: JeanCarl Date: Fri, 15 Feb 2019 14:40:19 -0800 Subject: [PATCH] Transfer placeholder and type to generated TypedInput field --- .../@node-red/editor-client/src/js/ui/common/typedInput.js | 5 +++++ 1 file changed, 5 insertions(+) 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 5f78a2c74..accfff6dd 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,6 +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");