From 208eb2d006a1b1b80c4fa8f753d23194183ce12c Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:48:42 +0000 Subject: [PATCH] Support custom hide timeout on node search dialog (#4) --- src/litegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index 45c14e08e..d12689b0c 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -11494,7 +11494,7 @@ LGraphNode.prototype.executeAction = function(action) } timeout_close = setTimeout(function() { dialog.close(); - }, 500); + }, typeof options.hide_on_mouse_leave === "number" ? options.hide_on_mouse_leave : 500); }); // if filtering, check focus changed to comboboxes and prevent closing if (options.do_type_filter){