[Django] #33511: Single-select admin autcomplete widget has lost its auto-focus

25 views
Skip to first unread message

Django

unread,
Feb 11, 2022, 3:41:04 AM2/11/22
to django-...@googlegroups.com
#33511: Single-select admin autcomplete widget has lost its auto-focus
-------------------------------------------------+------------------------
Reporter: jul...@pinabausch.org | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 1 |
-------------------------------------------------+------------------------
Dear Django team,

here’s a bug in Django admin related to the autocomplete fields
functionality.

I believe that the single-select autocomplete widget does not auto-focus
the input field anymore since Django 4 has been released.

I've been checking myself, but couldn't track down the issue.
I checked
https://github.com/django/django/tree/main/django/contrib/admin/static/admin/js
for a breaking change introduced in 4.0.
The release log doesn't mention anything either:
https://docs.djangoproject.com/en/4.0/releases/4.0/#django-contrib-admin

Current behavior:

Inside any change form view, click a field that is single-select with
auto-complete enabled.
A panel opens. It has a search field and shows the initial batch of
results.
The search field is not focused automatically (like it used to be in 3.x).

(see screenshot)

Expected behavior:

Same as above, but with the search field being focused.

--
Ticket URL: <https://code.djangoproject.com/ticket/33511>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 11, 2022, 3:42:12 AM2/11/22
to django-...@googlegroups.com
#33511: Single-select admin autcomplete widget has lost its auto-focus
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
jul...@pinabausch.org |

Type: Bug | Status: new
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution:

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by jul...@pinabausch.org):

* Attachment "Ohne Titel.png" added.

Django

unread,
Feb 11, 2022, 3:46:48 AM2/11/22
to django-...@googlegroups.com
#33511: Single-select admin autcomplete widget has lost its auto-focus
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
jul...@pinabausch.org |
Type: Bug | Status: closed
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #33504.

--
Ticket URL: <https://code.djangoproject.com/ticket/33511#comment:1>

Django

unread,
Feb 11, 2022, 3:48:21 AM2/11/22
to django-...@googlegroups.com
#33511: Single-select admin autcomplete widget has lost its auto-focus
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
jul...@pinabausch.org |
Type: Bug | Status: closed
Component: contrib.admin | Version: 4.0
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 1
-------------------------------------+-------------------------------------

Comment (by jul...@pinabausch.org):

Thanks & sorry!

--
Ticket URL: <https://code.djangoproject.com/ticket/33511#comment:2>

Reply all
Reply to author
Forward
0 new messages