mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: ensure number types always have integer step of at least 1
This commit is contained in:
@@ -115,7 +115,13 @@ const TemplateOption: React.FC<TemplateOptionProps> = ({
|
||||
onChange(value)
|
||||
}
|
||||
required={required}
|
||||
step={constraints?.max ? constraints?.max / 100 : 1}
|
||||
step={
|
||||
constraints?.max
|
||||
? Math.floor(constraints?.max / 100) > 0
|
||||
? Math.floor(constraints?.max / 100)
|
||||
: 1
|
||||
: 1
|
||||
}
|
||||
disabled={isDisabled}
|
||||
/>
|
||||
{description && (
|
||||
|
||||
Reference in New Issue
Block a user