From 14fdbd3b238168d421cc5808f8f300fe136b58c7 Mon Sep 17 00:00:00 2001 From: Johannes Wolf Date: Sun, 7 Jul 2024 11:40:43 +0200 Subject: [PATCH] always show placeholder text in fullwidth user selection fields (#2241) --- evap/evaluation/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evap/evaluation/templates/base.html b/evap/evaluation/templates/base.html index 53f7c11ceb..9cc581b222 100644 --- a/evap/evaluation/templates/base.html +++ b/evap/evaluation/templates/base.html @@ -148,7 +148,7 @@ const baseOptions = { createOnBlur: true, placeholder: "{% translate 'Please select...' %}", - hidePlaceholder: true, + hidePlaceholder: element.hasAttribute("data-tomselect-fullwidth") ? false : true, minimumInputLength, render: { option_create: (data, escape) => `
${ escape(data.input) }
`,