From a046663f18fc512dd0765f8fb5636f67c9f9f6ef Mon Sep 17 00:00:00 2001 From: Magnus Natrud Holta Date: Wed, 5 Jun 2024 08:37:51 +0200 Subject: [PATCH] chore: make autocomplete options readonly --- .../eds-core-react/src/components/Autocomplete/Autocomplete.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx b/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx index d75aa32d46..1f47099e75 100644 --- a/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx +++ b/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx @@ -250,7 +250,7 @@ export type AutocompleteChanges = { selectedItems: T[] } export type AutocompleteProps = { /** List of options in dropdown */ - options: T[] + options: readonly T[] /** Label for the select element */ label: ReactNode /** Array of initial selected items