Remove non-functional and inaccessible auto-focus on first field in page create forms

pull/11467/head
LB Johnston 2024-01-18 07:21:35 +10:00 zatwierdzone przez LB (Ben Johnston)
rodzic 422d6a8cbe
commit 430a37653c
3 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -116,6 +116,7 @@ Changelog
* Maintenance: Migrate styleguide ad-hoc JavaScript to use styles only to avoid CSP issues (LB (Ben) Johnston)
* Maintenance: Update Jest version - frontend tooling (Nandini Arora)
* Maintenance: Add more CSS authoring guidelines (Thibaud Colas)
* Maintenance: Remove non-functional and inaccessible auto-focus on first field in page create forms (LB (Ben) Johnston)
5.2.3 (xx.xx.xxxx) - IN DEVELOPMENT

Wyświetl plik

@ -162,6 +162,7 @@ Thank you to Thibaud Colas and Badr Fourane for their work on this feature.
* Remove inline script usage for comment initialization and adopt an event listener/dispatch approach for better CSP compliance (Aditya, LB (Ben) Johnston)
* Migrate styleguide ad-hoc JavaScript to use styles only to avoid CSP issues (LB (Ben) Johnston)
* Update Jest version - frontend tooling (Nandini Arora)
* Remove non-functional and inaccessible auto-focus on first field in page create forms (LB (Ben) Johnston)
## Upgrade considerations - removal of deprecated features from Wagtail 4.2 - 5.1

Wyświetl plik

@ -56,8 +56,6 @@
{% endif %}
$(function(){
$('#page-edit-form .tab-content section.active input').first().trigger('focus');
/* Make user confirm before leaving the editor if there are unsaved changes */
{% trans "This page has unsaved changes." as confirmation_message %}
enableDirtyFormCheck(