#34696: Actions selection counter gets cleared when using Chrome's back button
--------------------------------------+------------------------------------
     Reporter:  Cauê Thenório         |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  contrib.admin         |                  Version:  4.2
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  1
--------------------------------------+------------------------------------

Comment (by Cauê Thenório):

 After some tests, I found out that Chrome restores the selection after
 `Actions(actionsEls)` is executed, therefore calling `updateCounter` in
 the body of `Actions` function won't work as Chrome didn't restore the
 selection at that point.

 In this comment:
 https://bugs.chromium.org/p/chromium/issues/detail?id=1057463#c5
 A Chrome developer states the values are restored after the `pageshow`
 event: https://developer.mozilla.org/en-
 US/docs/Web/API/Window/pageshow_event

 I'll write a patch to run ` updateCounter` when the `pageshow` event is
 triggered.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34696#comment:5>
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/0107018930a22ecc-2ea9dbd8-6cf8-439f-bfa8-08954c1bf83a-000000%40eu-central-1.amazonses.com.

Reply via email to