I am facing an issue while constructing a Flask form that includes a QuerySelectField. Despite having everything in place, Bootstrap is displaying the <select>
as if it were a text input field.
Upon inspecting the page source, I noticed that the field is being displayed as
<select class="form-control"...>
. Based on my understanding of the Bootstrap documentation, it should instead be changed to <select class="form-select...>
. I have attempted to modify this by including both render_kw={'class': 'form-select'}
and extra_classes='form-select'
in my form class. However, the latter resulted in an Unexpected Keyword exception, and it appears that the former is not being recognized.
Is there any solution to ensure that my SelectField
displays as a proper <select>
field?