Skip to content

fix: add modal prop to Select component (#10074)#10253

Open
aakarsh12x wants to merge 1 commit intoshadcn-ui:mainfrom
aakarsh12x:fix/10074-select-sidebar-accessiblity
Open

fix: add modal prop to Select component (#10074)#10253
aakarsh12x wants to merge 1 commit intoshadcn-ui:mainfrom
aakarsh12x:fix/10074-select-sidebar-accessiblity

Conversation

@aakarsh12x
Copy link
Copy Markdown

Opening a Select component inside a portaled layout (like Sidebar / SidebarInset) currently triggers an accessibility warning: Blocked aria-hidden on an element because its descendant retained focus.

This occurs because Radix's hideOthers utility marks the application root as aria-hidden while focus is still transitioning from the SelectTrigger.

This PR explicitly adds the modal prop to the Select component in the registry. This allows consumers to set modal={false}, effectively disabling the hideOthers behavior and resolving the accessibility warning in complex/portaled layouts.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 1, 2026

Someone is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant