Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#33511 closed Bug (duplicate)

Single-select admin autcomplete widget has lost its auto-focus

Reported by: julian@pinabausch.org Owned by: nobody
Component: contrib.admin Version: 4.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

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.

Attachments (1)

Ohne Titel.png (31.1 KB ) - added by julian@pinabausch.org 3 years ago.

Download all attachments as: .zip

Change History (3)

by julian@pinabausch.org, 3 years ago

Attachment: Ohne Titel.png added

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #33504.

comment:2 by julian@pinabausch.org, 3 years ago

Thanks & sorry!

Note: See TracTickets for help on using tickets.
Back to Top