1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add click-on-tooltip to close

For the rare occasions a tooltip gets orphaned on the page
This commit is contained in:
Nick O'Leary 2019-09-29 16:47:18 +01:00
parent 3365d26b40
commit 52373e5bef
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -131,6 +131,11 @@ RED.popover = (function() {
existingPopover.close(true);
}
target.data("red-ui-popover",res)
if (options.tooltip) {
div.on("mousedown", function(evt) {
closePopup(true);
});
}
if (instant) {
div.show();
} else {