mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
Allow zero as input slider min/max (#854)
This commit is contained in:
@@ -54,8 +54,8 @@ const updateValue = (newValue: number | null) => {
|
||||
newValue = Number(props.min) || 0
|
||||
}
|
||||
|
||||
const min = Number(props.min) || Number.NEGATIVE_INFINITY
|
||||
const max = Number(props.max) || Number.POSITIVE_INFINITY
|
||||
const min = Number(props.min ?? Number.NEGATIVE_INFINITY)
|
||||
const max = Number(props.max ?? Number.POSITIVE_INFINITY)
|
||||
const step = Number(props.step) || 1
|
||||
|
||||
// Ensure the value is within the allowed range
|
||||
|
||||
Reference in New Issue
Block a user