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 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 : (