mirror of https://github.com/node-red/node-red.git
Fix a checkbox must return a boolean value and not `on`
parent
ca33d6b799
commit
e52c2911da
packages/node_modules/@node-red/editor-client/src/js/ui
|
@ -248,6 +248,8 @@ RED.editor = (function() {
|
|||
var value = input.val();
|
||||
if (defaults[property].hasOwnProperty("format") && defaults[property].format !== "" && input[0].nodeName === "DIV") {
|
||||
value = input.text();
|
||||
} else if (input.attr("type") === "checkbox") {
|
||||
value = input.prop("checked");
|
||||
}
|
||||
var valid = validateNodeProperty(node, defaults, property,value);
|
||||
if (((typeof valid) === "string") || !valid) {
|
||||
|
|
Loading…
Reference in New Issue