django/js_tests/admin
Blayze 90429625a8
Some checks are pending
Docs / docs (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
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.
2025-06-02 22:25:14 -03:00
..
actions.test.js Migrated to ESLint 9+. 2024-05-06 11:42:37 +02:00
core.test.js Fixed #23049 -- Added %a and %A support to Date.strftime. 2023-06-09 12:18:17 +02:00
DateTimeShortcuts.test.js Refs #31493 -- Changed IIFE to ES6 blocks. 2020-04-29 10:22:41 +02:00
inlines.test.js Fixed #33328 -- Transformed formset:added/removed to native JS events. 2022-02-23 10:33:07 +01:00
jsi18n-mocks.test.js Refs #31493 -- Changed IIFE to ES6 blocks. 2020-04-29 10:22:41 +02:00
navigation.test.js Migrated to ESLint 9+. 2024-05-06 11:42:37 +02:00
RelatedObjectLookups.test.js Fixed #36284, Refs #31170 -- Ensured related lookup popups are closed properly. 2025-04-01 13:52:22 -03:00
SelectBox.test.js Fixed #31522 -- Made admin's SelectBox preserve scroll position. 2020-07-01 16:31:38 +02:00
SelectFilter2.test.js Fixed #36423 -- Prevented filter_horizontal buttons from intercepting form submission. 2025-06-02 22:25:14 -03:00
URLify.test.js Fixed #11157 -- Stopped removing stop words in admin's prepopulated_fields. 2020-05-27 12:32:56 +02:00