mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 05:30:08 +00:00
Fix round setter
This commit is contained in:
@@ -181,7 +181,10 @@ function onCustomFloatCreated(this: LGraphNode) {
|
||||
const { precision } = this.properties
|
||||
return typeof precision === 'number' ? 10 ** -precision : 0.1
|
||||
},
|
||||
set: (v) => (this.properties.step = v)
|
||||
set: (v) => {
|
||||
this.properties.round = v
|
||||
valueWidget.callback?.(valueWidget.value)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user