diff --git a/django/contrib/admin/static/admin/js/SelectBox.js b/django/contrib/admin/static/admin/js/SelectBox.js index 6716e34530..1927b4cefa 100644 --- a/django/contrib/admin/static/admin/js/SelectBox.js +++ b/django/contrib/admin/static/admin/js/SelectBox.js @@ -102,7 +102,7 @@ select_all: function(id) { const box = document.getElementById(id); for (const option of box.options) { - option.selected = 'selected'; + option.selected = true; } } };