Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix annoyance.

comfyanonymous739c1a753d0d
diff --git a/web/scripts/widgets.js b/web/scripts/widgets.js
index 3c4641964..13d271137 100644
--- a/web/scripts/widgets.js
+++ b/web/scripts/widgets.js
@@ -56,7 +56,7 @@ function addMultilineWidget(node, name, defaultVal, app) {
widget.inputEl = document.createElement("textarea");
widget.inputEl.className = "comfy-multiline-input";
widget.inputEl.value = defaultVal;
- document.addEventListener("click", function (event) {
+ document.addEventListener("mousedown", function (event) {
if (!widget.inputEl.contains(event.target)) {
widget.inputEl.blur();
}