radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
14.84k stars 720 forks source link

Pls give ability to turn off Keyboard Interactions in primirives like (Accordion) #2903

Open Takesizmail opened 1 month ago

Takesizmail commented 1 month ago

Feature request

Pls give ability to turn off Keyboard Interactions in primirives like (Accordion)

Overview

I use an accordion, and in the header, I have an input that sets the title for the field. Every time I press space, the accordion opens and closes. I worked around this by using preventDefault() and stopPropagation() and manually adding a space to the value; otherwise, it doesn't work at all. PLS Allow disabling Keyboard Interactions.

Who does this impact? Who is this for?

Additional context

H7ioo commented 1 week ago

I'm having a similar issue can you provide some help https://github.com/radix-ui/primitives/discussions/2977?