[Bug] Fix number widget range not enforced (#850)

Resolves https://github.com/Comfy-Org/ComfyUI_frontend/issues/3204
This commit is contained in:
Chenlei Hu
2025-03-24 15:37:55 -04:00
committed by GitHub
parent 123c46d28b
commit c5db2d8736
2 changed files with 18 additions and 23 deletions

View File

@@ -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