mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-05-06 08:26:45 -03:00
During drag, handleStrengthDrag is called with updateWidget=false, which mutates widgetValue in-place via parseLoraValue's direct array reference, bypassing widget.value setter and options.setValue entirely. endDrag only called renderFunction for a DOM refresh, but never flushed the mutation through options.setValue. Any external observer that wraps options.setValue (e.g. ComfyUI Mirror Panel's bidirectional sync) would therefore never see the dragged value and would treat the widget as unchanged. Fix: replace the explicit renderFunction call with widget.value = widget.value. This flushes the in-place mutation through the setter (options.setValue), which re-renders the DOM internally AND notifies all setValue wrappers. Also fire widget.callback for parity with the updateWidget=true path in handleStrengthDrag. Applies the same fix to initHeaderDrag (proportional all-LoRA header drag).
32 KiB
32 KiB