#35433: NumberInput off-by-one on min value for type range
--------------------------------------+------------------------
Reporter: mitch99 | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
--------------------------------------+------------------------
Given this:
{{{
widgets = {
"weight": forms.NumberInput(attrs={'type':'range', 'step': '1', 'min':
'1', 'max': '5'),
}
}}}
I expect the min value on the range input to be 1, but it's actually 0:
{{{
<input type="range" name="form-2-weight" value="3" step="1" min="0"
max="5" aria-describedby="id_form-2-weight_helptext"
id="id_form-2-weight">
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35433>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018f47345a53-11f7986e-3df3-4e21-beea-898beaf479f4-000000%40eu-central-1.amazonses.com.