From 6f121fc245778c6cd726ed377b8c6ecdf3891f73 Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 7 Sep 2024 02:17:36 -0700 Subject: [PATCH] Fix legacy searchbox focus on Firefox (#127) --- src/litegraph.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/litegraph.js b/src/litegraph.js index a509e41f68..d4a7c971c7 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -11928,7 +11928,9 @@ const globalExport = {}; } canvas.parentNode.appendChild(dialog); */ - input.focus(); + requestAnimationFrame(function () { + input.focus(); + }); if (options.show_all_on_open) refreshHelper(); function select(name) {