However, when you include a search field in the list screen, it has
autofocus enabled, which prevents the scroll position from being restored.
This is annoying and unhelpful. This is new behavior since django 1.9 I
believe.
I suggest removing the autofocus, but I'm open to other suggestions
(making it customizable somehow for example)
--
Ticket URL: <https://code.djangoproject.com/ticket/27692>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
I think that was done in 1.10 as part of removing inline JavaScript
d638cdc42acec608c1967f44af6be32a477c239f (#25165). I guess it would be
fine to remove `autofocus` although I'd like to see if anyone on the
DevelopersMailingList has input.
--
Ticket URL: <https://code.djangoproject.com/ticket/27692#comment:1>
Comment (by Ciske Boekelo):
Thanks for your swift reply, Graham!
Would you like me to ask the question on the Django Developers Mailing
List or have/will you?
--
Ticket URL: <https://code.djangoproject.com/ticket/27692#comment:2>
Comment (by Tim Graham):
I started [https://groups.google.com/d/topic/django-
developers/CPfN3XLH95s/discussion a thread].
--
Ticket URL: <https://code.djangoproject.com/ticket/27692#comment:3>
Comment (by Ciske Boekelo):
I just found out that's it not new behavior in Django 1.9. The javascript
autofocus that existed previously has the same effect. This doesn't change
my request though, I'd still like the autofocus to be either removed or
optional.
--
Ticket URL: <https://code.djangoproject.com/ticket/27692#comment:4>
* cc: Tom Carrick (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/27692#comment:5>