#13614: Back button breaks many to many widget
------------------------------------+-------------------------------
               Reporter:  minarets  |          Owner:  nobody
                   Type:  Bug       |         Status:  reopened
              Milestone:            |      Component:  contrib.admin
                Version:  1.2       |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  1
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
                  UI/UX:  1         |
------------------------------------+-------------------------------

Comment (by julien):

 @ramiro: It works with all browsers, including Webkit-based ones, when
 using a plain `<select>` widget. The problem here is that the javascript
 modifies the widget, in particular its `name` attribute. It's still
 unclear to me why Chrome behaves differently than other browsers, but it
 could be argued that Django's javascript is responsible for this issue and
 that it shouldn't be modifying the widget in such a way.

 By the way, the suggested workaround leaves the original `<select>` widget
 alone, hides it, and uses the dynamically created 'from' and 'to' widgets
 only to handle the UI while updating the hidden widget in the background
 with the selected values, so that the browser only has to deal with a
 plain `<select>` widget when submitting the form or when navigating to and
 away from the page.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/13614#comment:15>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to