fix(loras): allow toggle deselect on LoRA entry click

This commit is contained in:
Will Miao
2026-07-14 18:23:06 +08:00
parent 02c249917a
commit 01efcbc584

View File

@@ -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