🐛 fix(forms): Add step attribute to number inputs for better value control

This commit is contained in:
web@ppanel
2025-03-17 22:47:42 +07:00
parent aa1d42651d
commit b8f4f1e694
4 changed files with 20 additions and 5 deletions
@@ -307,6 +307,7 @@ export default function CouponForm<T extends Record<string, any>>({
<EnhancedInput
placeholder={t('form.countPlaceholder')}
type='number'
step={1}
{...field}
onValueChange={(value) => {
form.setValue(field.name, value);
@@ -327,6 +328,7 @@ export default function CouponForm<T extends Record<string, any>>({
<EnhancedInput
placeholder={t('form.userLimitPlaceholder')}
type='number'
step={1}
{...field}
onValueChange={(value) => {
form.setValue(field.name, value);