diff --git a/core/static/core/components/ajax-select.scss b/core/static/core/components/ajax-select.scss
index 9d34424f..cb9d466c 100644
--- a/core/static/core/components/ajax-select.scss
+++ b/core/static/core/components/ajax-select.scss
@@ -20,6 +20,10 @@
margin: 5px;
}
+.ts-wrapper.single {
+ width: 263px; // same length as regular text inputs
+}
+
.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
border-left: 1px solid #aaa;
}
diff --git a/core/templates/core/widgets/autocomplete_select.jinja b/core/templates/core/widgets/autocomplete_select.jinja
index 12d1d254..7a87abcb 100644
--- a/core/templates/core/widgets/autocomplete_select.jinja
+++ b/core/templates/core/widgets/autocomplete_select.jinja
@@ -5,7 +5,7 @@
{% endfor %}
-<{{ component }} name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>
+<{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>
{% for group_name, group_choices, group_index in widget.optgroups %}
{% if group_name %}