From c25e99ed113fa0e930683cf480ffac94efb1f126 Mon Sep 17 00:00:00 2001 From: hexcowboy Date: Wed, 3 Jan 2024 02:29:02 -0700 Subject: [PATCH] [@mantine/core] Combobox: Fix readonly data array not being supported (#5477) --- .../@mantine/core/src/components/Combobox/Combobox.types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@mantine/core/src/components/Combobox/Combobox.types.ts b/packages/@mantine/core/src/components/Combobox/Combobox.types.ts index 00fa1c3b7d3..620b2a6c00c 100644 --- a/packages/@mantine/core/src/components/Combobox/Combobox.types.ts +++ b/packages/@mantine/core/src/components/Combobox/Combobox.types.ts @@ -17,7 +17,9 @@ export interface ComboboxParsedItemGroup { items: ComboboxItem[]; } -export type ComboboxData = (string | ComboboxItem | ComboboxItemGroup)[]; +export type ComboboxData = + | Array + | ReadonlyArray; export type ComboboxParsedItem = ComboboxItem | ComboboxParsedItemGroup; export type ComboboxLikeStylesNames = Exclude;