mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3570 from node-red/validate-tooltip-fix
Ensure node validation tooltip is closed when field becomes valid
This commit is contained in:
commit
95b35be541
@ -472,6 +472,7 @@ RED.popover = (function() {
|
|||||||
action = newAction;
|
action = newAction;
|
||||||
}
|
}
|
||||||
popover.delete = function() {
|
popover.delete = function() {
|
||||||
|
popover.close(true)
|
||||||
target.off("mouseenter");
|
target.off("mouseenter");
|
||||||
target.off("mouseleave");
|
target.off("mouseleave");
|
||||||
};
|
};
|
||||||
|
@ -421,20 +421,11 @@ RED.editor = (function() {
|
|||||||
* @param prefix - the prefix to use in the input element ids (node-input|node-config-input)
|
* @param prefix - the prefix to use in the input element ids (node-input|node-config-input)
|
||||||
*/
|
*/
|
||||||
function attachPropertyChangeHandler(node,definition,property,prefix) {
|
function attachPropertyChangeHandler(node,definition,property,prefix) {
|
||||||
var input = $("#"+prefix+"-"+property);
|
$("#"+prefix+"-"+property).on("change keyup paste", function(event) {
|
||||||
if (definition !== undefined && "format" in definition[property] && definition[property].format !== "" && input[0].nodeName === "DIV") {
|
|
||||||
$("#"+prefix+"-"+property).on('change keyup', function(event) {
|
|
||||||
if (!$(this).attr("skipValidation")) {
|
if (!$(this).attr("skipValidation")) {
|
||||||
validateNodeEditor(node,prefix);
|
validateNodeEditor(node,prefix);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
$("#"+prefix+"-"+property).on("change", function(event) {
|
|
||||||
if (!$(this).attr("skipValidation")) {
|
|
||||||
validateNodeEditor(node,prefix);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user