mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Config node validation should define to node-defined func
This commit is contained in:
parent
a08789a086
commit
8a646f73b3
@ -108,7 +108,7 @@ RED.editor = function() {
|
|||||||
if (valid && "validate" in node._def.defaults[property]) {
|
if (valid && "validate" in node._def.defaults[property]) {
|
||||||
valid = node._def.defaults[property].validate.call(node,value);
|
valid = node._def.defaults[property].validate.call(node,value);
|
||||||
}
|
}
|
||||||
if (valid && node._def.defaults[property].type && RED.nodes.getType(node._def.defaults[property].type)) {
|
if (valid && node._def.defaults[property].type && RED.nodes.getType(node._def.defaults[property].type) && !("validate" in node._def.defaults[property])) {
|
||||||
if (!value || value == "_ADD_") {
|
if (!value || value == "_ADD_") {
|
||||||
valid = false;
|
valid = false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user