#33828 closed Bug (duplicate)

Admin's autocomplete_fields don't autofocus when opened

Reported by: flbraun 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: no UI/UX: no

Description

After upgrading from Django 3.2 to 4.0, fields utilizing the Select2 widget in the admin don't get autofocus on their search field when clicked on any more.

There is an open bug with Select2 regarding autofocus issues with jQuery 3.6.0. Django 4.0 upgraded the vendored jQuery to that exact version, so I guess that's where the issue comes from.

Change History (1)

comment:1 by Mariusz Felisiak, 22 months ago

Component: Uncategorizedcontrib.admin
Resolution: duplicate
Status: newclosed

Duplicate of #33504.

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