From 7b8e09c90b35de4af7caef673bc5d40c29a5851f Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 18:17:12 +0300 Subject: [PATCH] [v10.1.x] DataSourcePicker: Disable autocomplete for the search input (#75900) DataSourcePicker: Disable autocomplete for the search input (#75898) (cherry picked from commit 6aa27607ae91c2f4365472bc987862557459b957) Co-authored-by: Ivan Ortega Alba --- .../datasources/components/picker/DataSourceDropdown.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/datasources/components/picker/DataSourceDropdown.tsx b/public/app/features/datasources/components/picker/DataSourceDropdown.tsx index 39fa1071752..6c81d9f213b 100644 --- a/public/app/features/datasources/components/picker/DataSourceDropdown.tsx +++ b/public/app/features/datasources/components/picker/DataSourceDropdown.tsx @@ -198,6 +198,7 @@ export function DataSourceDropdown(props: DataSourceDropdownProps) { className={inputHasFocus ? undefined : styles.input} data-testid={selectors.components.DataSourcePicker.inputV2} aria-label="Select a data source" + autoComplete="off" prefix={currentValue ? prefixIcon : undefined} suffix={} placeholder={hideTextValue ? '' : dataSourceLabel(currentValue) || placeholder}