Skip to content

Commit

Permalink
Fix legacy searchbox focus on Firefox (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne authored Sep 7, 2024
1 parent 009ef1c commit 6f121fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/litegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f121fc

Please sign in to comment.