From d3da1349fe8b97209e8c220b41ad87181aa722b7 Mon Sep 17 00:00:00 2001 From: Wojciech Date: Tue, 14 May 2024 13:44:33 +0200 Subject: [PATCH 1/3] add data id to portal --- src/components/Combobox/Static/Combobox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Combobox/Static/Combobox.tsx b/src/components/Combobox/Static/Combobox.tsx index 338c2c85..4f800ebf 100644 --- a/src/components/Combobox/Static/Combobox.tsx +++ b/src/components/Combobox/Static/Combobox.tsx @@ -147,6 +147,7 @@ const ComboboxInner = ( showEmptyState: hasNoOptions(children), })} className={listWrapperRecipe({ size })} + data-portal-for={id} > Date: Tue, 14 May 2024 13:49:24 +0200 Subject: [PATCH 2/3] changesets --- .changeset/fuzzy-brooms-travel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fuzzy-brooms-travel.md diff --git a/.changeset/fuzzy-brooms-travel.md b/.changeset/fuzzy-brooms-travel.md new file mode 100644 index 00000000..1d51e891 --- /dev/null +++ b/.changeset/fuzzy-brooms-travel.md @@ -0,0 +1,5 @@ +--- +"@saleor/macaw-ui": patch +--- + +ID passed to comobobox will now be passed as an attribute to dropdown list wrapper box From 4da1ecbe85aaef60ed66f63b1bb95e45048b960d Mon Sep 17 00:00:00 2001 From: Wojciech Date: Tue, 14 May 2024 14:19:03 +0200 Subject: [PATCH 3/3] pass id to dynamic combobox attr --- src/components/Combobox/Dynamic/DynamicCombobox.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Combobox/Dynamic/DynamicCombobox.tsx b/src/components/Combobox/Dynamic/DynamicCombobox.tsx index e6ee6ec8..cce2ce00 100644 --- a/src/components/Combobox/Dynamic/DynamicCombobox.tsx +++ b/src/components/Combobox/Dynamic/DynamicCombobox.tsx @@ -155,6 +155,7 @@ const DynamicComboboxInner = ( showEmptyState: hasNoOptions(children), })} className={listWrapperRecipe({ size })} + data-portal-for={id} >