mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: guard read_only setter to avoid redundant onReadOnlyChanged notifications
This commit is contained in:
@@ -403,6 +403,10 @@ export class LGraphCanvas implements CustomEventDispatcher<LGraphCanvasEventMap>
|
||||
}
|
||||
|
||||
set read_only(value: boolean) {
|
||||
if (this.state.readOnly === value) {
|
||||
this._updateCursorStyle()
|
||||
return
|
||||
}
|
||||
this.state.readOnly = value
|
||||
this._updateCursorStyle()
|
||||
this.onReadOnlyChanged?.(value)
|
||||
|
||||
Reference in New Issue
Block a user