Commit 739c1a75 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix annoyance.

parent 27693b3e
...@@ -56,7 +56,7 @@ function addMultilineWidget(node, name, defaultVal, app) { ...@@ -56,7 +56,7 @@ function addMultilineWidget(node, name, defaultVal, app) {
widget.inputEl = document.createElement("textarea"); widget.inputEl = document.createElement("textarea");
widget.inputEl.className = "comfy-multiline-input"; widget.inputEl.className = "comfy-multiline-input";
widget.inputEl.value = defaultVal; widget.inputEl.value = defaultVal;
document.addEventListener("click", function (event) { document.addEventListener("mousedown", function (event) {
if (!widget.inputEl.contains(event.target)) { if (!widget.inputEl.contains(event.target)) {
widget.inputEl.blur(); widget.inputEl.blur();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment