django/js_tests
Blayze 37e5cc6d89 [5.2.x] 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 857b1048d5.

Backport of 90429625a8 from main.
2025-06-02 22:26:36 -03:00
..
admin [5.2.x] Fixed #36423 -- Prevented filter_horizontal buttons from intercepting form submission. 2025-06-02 22:26:36 -03:00
gis Upgraded OpenLayers to v.7.2.2. 2022-12-29 08:30:30 +01:00
tests.html [5.2.x] Refs #31170 -- Added JavaScript tests for RelatedObjectLookups.js. 2025-02-18 10:35:56 +01:00