#32559: Add attribute 'step' to FloatField.
-------------------------------------+-------------------------------------
     Reporter:  Jacob Rief           |                    Owner:  Jacob
                                     |  Rief
         Type:  New feature          |                   Status:  assigned
    Component:  Forms                |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  FloatField,          |             Triage Stage:  Accepted
  NumberInput, step                  |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

 Current PR removes the default `step="any"` which is a problem.

 Comment from PR:

 > This introduces a regression from
 7ec2a21be15af5b2c7513482c3bcfdd1e12782ed.
 >
 > We need a selenium test to cover it, but if I create an `<input
 type="number" />` without the `step` specified at all, I can't enter a
 non-integer value, such as `0.5` without triggering the browser validation
 (''Enter a valid value'').
 >
 > This ties in with [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Element/input/number#step MDN docs for step]:
 >
 >> The default stepping value for number inputs is 1, allowing only
 integers to be entered…

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32559#comment:15>
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/063.87679d3735743065350725cc5dbb2951%40djangoproject.com.

Reply via email to