mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-23 21:10:49 +08:00
Fix annoyance.
This commit is contained in:
parent
27693b3e6c
commit
739c1a753d
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user