From e13b21767d5982a98742416fef42b818571b0969 Mon Sep 17 00:00:00 2001 From: Marie Lucca Date: Wed, 15 Jan 2025 17:02:44 -0500 Subject: [PATCH 1/2] fix(SelectPanel): pass anchorId to AnchoredOverlay --- packages/react/src/SelectPanel/SelectPanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react/src/SelectPanel/SelectPanel.tsx b/packages/react/src/SelectPanel/SelectPanel.tsx index 39d41d26094..facc121e532 100644 --- a/packages/react/src/SelectPanel/SelectPanel.tsx +++ b/packages/react/src/SelectPanel/SelectPanel.tsx @@ -102,6 +102,7 @@ export function SelectPanel({ overlayProps, sx, className, + id, ...listProps }: SelectPanelProps): JSX.Element { const titleId = useId() @@ -213,6 +214,7 @@ export function SelectPanel({ }} focusTrapSettings={focusTrapSettings} focusZoneSettings={focusZoneSettings} + anchorId={id} > {usingModernActionList ? null : ( From fe3ebfd4a7408dd6da40fbaa956512b7d16afd33 Mon Sep 17 00:00:00 2001 From: Marie Lucca <40550942+francinelucca@users.noreply.github.com> Date: Wed, 15 Jan 2025 17:12:58 -0500 Subject: [PATCH 2/2] Create tricky-ducks-pretend.md --- .changeset/tricky-ducks-pretend.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tricky-ducks-pretend.md diff --git a/.changeset/tricky-ducks-pretend.md b/.changeset/tricky-ducks-pretend.md new file mode 100644 index 00000000000..fd0db6f3cdf --- /dev/null +++ b/.changeset/tricky-ducks-pretend.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +fix(SelectPanel): pass anchorId to AnchoredOverlay