mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
[Bug] Fix number widget range not enforced (#850)
Resolves https://github.com/Comfy-Org/ComfyUI_frontend/issues/3204
This commit is contained in:
@@ -113,6 +113,7 @@ export abstract class BaseWidget implements IBaseWidget {
|
||||
}) {
|
||||
const { node, canvas, e } = options
|
||||
const oldValue = this.value
|
||||
if (value === this.value) return
|
||||
|
||||
const v = this.type === "number" ? Number(value) : value
|
||||
this.value = v
|
||||
|
||||
Reference in New Issue
Block a user