primitives icon indicating copy to clipboard operation
primitives copied to clipboard

Select, DropdownMenu - keyboard interactions are not working as expected in Shadow DOM

Open alexandravassova opened this issue 1 year ago • 4 comments

Bug report

Current Behavior

When Select or DropdownMenu component is used in Shadow DOM and its content is open, arrow keys are not working correctly. After pressing the ArrowDown key, the focus is moved to the last item of the list and vice versa, if ArrowUp key is pressed, the focus is moved to first item.

Expected behavior

When focus is on an item, ArrowDown key should move focus to the next item, ArrowUp should move focus to the previous item also in Shadow DOM.

Your environment

Software Name(s) Version
Radix Package(s) select, dropdown-menu 1.2.2, 2.0.5
React n/a 18.2.0
Browser all browsers
Assistive tech
Node n/a
npm/yarn
Operating System

alexandravassova avatar Dec 20 '23 20:12 alexandravassova

I see the same with toggle group as well.

MartinDavi avatar Jan 24 '24 17:01 MartinDavi

Also experiencing the same issue.

abrehamgezahegn avatar Feb 18 '24 13:02 abrehamgezahegn

I have opened a PR for this here https://github.com/radix-ui/primitives/pull/2712

abrehamgezahegn avatar Feb 18 '24 15:02 abrehamgezahegn

I got the same issue :((( Please fix it

QuocThuanTruong avatar May 06 '24 05:05 QuocThuanTruong