summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBlayze <blayze@carstickers.com>2025-05-28 11:22:29 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-06-02 22:25:14 -0300
commit90429625a85f1f77dfea200c91bd2dabab57974f (patch)
tree7027e17e658c3aab80c004d64178079a53400130 /docs
parent1a744343999c9646912cee76ba0a2fa6ef5e6240 (diff)
Fixed #36423 -- Prevented filter_horizontal buttons from intercepting form submission.
In the admin's filter_horizontal widget, optional action buttons like "Choose all", "Remove all", etc. were changed from `<a>` to `<button>` elements in #34619, but without specifying `type="button"`. As a result, when pressing Enter while focused on a form input, these buttons could be triggered and intercept form submission. Explicitly set `type="button"` on these control buttons to prevent them from acting as submit buttons. Thanks Antoliny Lee for the quick triage and review. Regression in 857b1048d53ebf5fc5581c110e85c212b81ca83a.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/5.2.2.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt
index 8ed0856352..5647c0cc07 100644
--- a/docs/releases/5.2.2.txt
+++ b/docs/releases/5.2.2.txt
@@ -30,3 +30,7 @@ Bugfixes
* Fixed a regression in Django 5.2 that caused a crash when using ``OuterRef``
in PostgreSQL aggregate functions ``ArrayAgg``, ``StringAgg``, and
``JSONBAgg`` (:ticket:`36405`).
+
+* Fixed a regression in Django 5.2 where admin's ``filter_horizontal`` buttons
+ lacked ``type="button"``, causing them to intercept form submission when
+ pressing the Enter key (:ticket:`36423`).