#30459: If a StackedInline has fieldsets with the "collapsed" class, the "Show"
link doesn't work on inline forms added with the "Add another [inline
object]" link
--------------------------------------+------------------------------------
     Reporter:  Antonis Christofides  |                    Owner:  nobody
         Type:  Bug                   |                   Status:  new
    Component:  contrib.admin         |                  Version:  2.2
     Severity:  Release blocker       |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  1
--------------------------------------+------------------------------------
Changes (by Carlton Gibson):

 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


Comment:

 OK, yes. Thanks for the report

 This a regression in ba83378a7762c51be235b521aa5b48233d6c6c82, which was
 part of Django v2.2.
 (Reproduced at af5ec222ccd24e81f9fec6c34836a4e503e7ccf7)

 The change from using [http://api.jquery.com/on/ jQuery's `on()`] did not
 correctly account for the _delegation_ of event handlers.
 Instead of attaching directly to the `a.collapse-toggle` elements (which
 in this case do not exist in the DOM at when the listener is added) we
 should attach to a parent element and filter events by the event target
 class (as jQuery does/did for us).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30459#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.2f3ddea1849e3b8841409318c062f9a5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to