Alerting: Fix AlertLabelDropdown to be case sensitive (#63787)

Fix AlertLabelDropdown to be case sensitive
This commit is contained in:
Sonia Aguilar
2023-02-28 09:53:33 +01:00
committed by GitHub
parent e4d72df758
commit 526cac60e5
4 changed files with 48 additions and 4 deletions

View File

@@ -181,7 +181,7 @@ export function SelectBase<T>({
let ReactSelectComponent = ReactSelect;
const creatableProps: ComponentProps<typeof Creatable> = {};
const creatableProps: ComponentProps<typeof Creatable<SelectableValue<T>>> = {};
let asyncSelectProps: any = {};
let selectedValue;
if (isMulti && loadOptions) {

View File

@@ -88,7 +88,7 @@ export interface SelectCommonProps<T> {
isValidNewOption?: (
inputValue: string,
value: SelectableValue<T> | null,
options: OptionsOrGroups<unknown, GroupBase<unknown>>
options: OptionsOrGroups<SelectableValue<T>, GroupBase<SelectableValue<T>>>
) => boolean;
/** Message to display isLoading=true*/
loadingMessage?: string;