From 01efcbc584088fd4e66bc49f8bf2ac02f43087cd Mon Sep 17 00:00:00 2001 From: Will Miao Date: Tue, 14 Jul 2026 18:23:06 +0800 Subject: [PATCH] fix(loras): allow toggle deselect on LoRA entry click --- web/comfyui/loras_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/comfyui/loras_widget.js b/web/comfyui/loras_widget.js index 69086edd..debed5d5 100644 --- a/web/comfyui/loras_widget.js +++ b/web/comfyui/loras_widget.js @@ -280,8 +280,8 @@ export function addLorasWidget(node, name, opts, callback) { e.preventDefault(); e.stopPropagation(); - selectLora(name); - container.focus(); // Focus container for keyboard events + selectLora(name === selectedLora ? null : name); + container.focus(); }); // Conditionally create drag handle OR lock button