We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FloatField uses TextInput but should instead use a NumberInput with step any by default, somewhat like DecimalField does.
FloatField
TextInput
NumberInput
any
DecimalField
>>> import wtforms >>> class F(wtforms.Form): ... foo = wtforms.FloatField() >>> F().foo() Markup('<input id="foo" name="foo" type="text" value="">')
>>> import wtforms >>> class F(wtforms.Form): ... foo = wtforms.FloatField() >>> F().foo() Markup('<input id="foo" name="foo" type="number" value="" step="any">')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
FloatField
usesTextInput
but should instead use aNumberInput
with stepany
by default, somewhat likeDecimalField
does.Actual Behavior
Expected Behavior
Environment
The text was updated successfully, but these errors were encountered: