#33386: Autocomplete on refresh with Firefox interacts badly with
ModelMultipleChoiceField in forms
-----------------------------------------+-------------------------
Reporter: pbrenna | Owner: nobody
Type: Uncategorized | Status: new
Component: Forms | Version: 3.2
Severity: Normal | Keywords: firefox
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-----------------------------------------+-------------------------
Steps to reproduce:
- visit a form containing a ModelMultipleChoiceField (such as the page for
editing an auth.group in django admin) with a recent version of Firefox.
The widget has two <select>s, and the second one contains the chosen
elements.
- refresh the page with f5 or the reload button
- notice that the second <select> is now empty (no <option>s)
This causes inadvertent data loss when the user then submits the form. The
behaviour can be avoided by setting autocomplete="off".
A similar behaviour is noticeable in normal <select> widgets, where the
value chosen before refreshing is still selected after the refresh,
regardless of the <option> selected="" attribute, although this being a
bug is debatable, and certainly not limited to django.
--
Ticket URL: <https://code.djangoproject.com/ticket/33386>
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/050.725806a56ffcc38192681f2cac393c59%40djangoproject.com.