1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34283 -- Escaped title in admin's changelist filters.

Regression in 27aa7035f5.
This commit is contained in:
Stanislav Volyk
2023-01-25 21:53:38 +02:00
committed by Mariusz Felisiak
parent 0265b1b49b
commit 20a0850099
4 changed files with 49 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
}
Object.entries(filters).forEach(([key, value]) => {
const detailElement = document.querySelector(`[data-filter-title='${key}']`);
const detailElement = document.querySelector(`[data-filter-title='${CSS.escape(key)}']`);
// Check if the filter is present, it could be from other view.
if (detailElement) {