From dbec7bbbad09a5a67dd77982128131cbfe2f502b Mon Sep 17 00:00:00 2001 From: Mike Burgess Date: Fri, 19 Aug 2022 10:48:32 +0100 Subject: [PATCH] Dashboard UI combo input should display the "Use " option before matching options so that users can hit return to submit their custom value #1816 --- .../src/components/dashboards/inputs/ComboInput/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/dashboard/src/components/dashboards/inputs/ComboInput/index.tsx b/ui/dashboard/src/components/dashboards/inputs/ComboInput/index.tsx index 50d819872..ead7e61d1 100644 --- a/ui/dashboard/src/components/dashboards/inputs/ComboInput/index.tsx +++ b/ui/dashboard/src/components/dashboards/inputs/ComboInput/index.tsx @@ -235,6 +235,7 @@ const ComboInput = ({ // @ts-ignore SingleValue: SingleValueWithTags, }} + createOptionPosition="first" formatCreateLabel={(inputValue) => `Use "${inputValue}"`} menuPortalTarget={document.body} inputId={`${name}.input`}