MonthInput does not regsiter data
Jake-Ruston opened this issue · 1 comments
Jake-Ruston commented
I am using a MonthInput
in the following way:
from flask_wtf import FlaskForm
from wtforms.fields import html5 as h5fields
from wtforms.widgets import html5 as h5widgets
class ImportForm(FlaskForm):
month = h5fields.DateField("Month", widget=h5widgets.MonthInput(), validators=[DataRequired()])
submit = SubmitField("Import")
However, when I submit the form with a value, the value is empty:
if form.validate_on_submit():
pass
else:
print(form.errors) # {'month': ['This field is required.']}
Why is this value not being passed correctly?