feat(ui): exclude lock button from drag init in LoRA widget

Add `.lm-lora-lock-button` to the list of elements that should not trigger drag initialization in the LoRA widget event handler. This prevents unintended drag actions when interacting with the lock button, improving user experience and interaction clarity.
This commit is contained in:
Will Miao
2026-01-19 12:53:59 +08:00
parent 4ff397e9c1
commit e44180b832

View File

@@ -126,6 +126,7 @@ export function initDrag(
e.target.closest('input') ||
e.target.closest('.lm-lora-arrow') ||
e.target.closest('.lm-lora-drag-handle') ||
e.target.closest('.lm-lora-lock-button') ||
e.target.closest('.lm-lora-expand-button')) {
return;
}