Skip to content

Commit 2401cec

Browse files
author
tamat
committed
fix in searchbox retenting the focus
1 parent af19af2 commit 2401cec

7 files changed

+106
-102
lines changed

build/litegraph.core.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11212,7 +11212,8 @@ LGraphNode.prototype.executeAction = function(action)
1121211212

1121311213
dialog.close = function() {
1121411214
that.search_box = null;
11215-
root_document.body.focus();
11215+
//root_document.body.focus();
11216+
this.blur();
1121611217
root_document.body.style.overflow = "";
1121711218

1121811219
setTimeout(function() {

build/litegraph.core.min.js

+92-92
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/litegraph.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11212,7 +11212,8 @@ LGraphNode.prototype.executeAction = function(action)
1121211212

1121311213
dialog.close = function() {
1121411214
that.search_box = null;
11215-
root_document.body.focus();
11215+
//root_document.body.focus();
11216+
this.blur();
1121611217
root_document.body.style.overflow = "";
1121711218

1121811219
setTimeout(function() {

build/litegraph.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/litegraph_mini.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11212,7 +11212,8 @@ LGraphNode.prototype.executeAction = function(action)
1121211212

1121311213
dialog.close = function() {
1121411214
that.search_box = null;
11215-
root_document.body.focus();
11215+
//root_document.body.focus();
11216+
this.blur();
1121611217
root_document.body.style.overflow = "";
1121711218

1121811219
setTimeout(function() {

build/litegraph_mini.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/litegraph.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11210,7 +11210,8 @@ LGraphNode.prototype.executeAction = function(action)
1121011210

1121111211
dialog.close = function() {
1121211212
that.search_box = null;
11213-
root_document.body.focus();
11213+
//root_document.body.focus();
11214+
this.blur();
1121411215
root_document.body.style.overflow = "";
1121511216

1121611217
setTimeout(function() {

0 commit comments

Comments
 (0)