mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
toString values before checking for changes
This commit is contained in:
parent
ce5c9da107
commit
fe1ce21114
@ -230,7 +230,7 @@ RED.editor = (function() {
|
|||||||
newValue = input.val();
|
newValue = input.val();
|
||||||
}
|
}
|
||||||
if (newValue != null) {
|
if (newValue != null) {
|
||||||
if (editing_node[d] != newValue) {
|
if (editing_node[d].toString() != newValue.toString()) {
|
||||||
if (editing_node._def.defaults[d].type) {
|
if (editing_node._def.defaults[d].type) {
|
||||||
if (newValue == "_ADD_") {
|
if (newValue == "_ADD_") {
|
||||||
newValue = "";
|
newValue = "";
|
||||||
@ -248,7 +248,7 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
changes[d] = editing_node[d];
|
changes[d] = editing_node[d];
|
||||||
editing_node[d] = newValue;
|
editing_node[d] = newValue;
|
||||||
if (d !== 'valid') { changed = true; }
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user