You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a bug with SelectField, not SelectMultipleField. If form data was passed in, default data should be ignored. But with many web frameworks it's impossible to tell that a form wasn't submitted vs submitted but empty by only looking at the form data object. This is a specific case of #402.
When a request object and a data dict are passed to a form, the data dict values for
SelectMultipleField
are ignored.A simple workaround is
F(requestform or None, multiple=["foo", "bar"]).multiple()
but I think this should probably work without it.The problem does not exist with
SelectField
:Environment
The text was updated successfully, but these errors were encountered: