Skip to content

fix(aria/combobox): replace manual popover usage with cdkConnectedOverlay attach/detach pattern#32750

Open
shivdev277 wants to merge 9 commits intoangular:mainfrom
shivdev277:docs/combobox-overlay-consistency
Open

fix(aria/combobox): replace manual popover usage with cdkConnectedOverlay attach/detach pattern#32750
shivdev277 wants to merge 9 commits intoangular:mainfrom
shivdev277:docs/combobox-overlay-consistency

Conversation

@shivdev277
Copy link

What's the issue?
The combobox and autocomplete examples were rendering their panels in the DOM as always-visible elements, then hiding them with CSS. This is inefficient and inconsistent with how other overlays (menus, selects, etc.) work in the codebase.

What did I change?
Replaced the manual popover API usage with cdkConnectedOverlay. Instead of keeping a hidden

in the DOM and calling showPopover() / hidePopover(), the panels now attach and detach from the DOM dynamically.

Specific changes:

Removed

wrappers and replaced them with .
Removed the popover ViewChild and the manual showPopover() methods.
Added a panelWidth signal to preserve the input's width when the panel is attached.
Bind the overlay's [open], [width], and [origin] to the component state.
Files updated:

combobox-manual, combobox-auto-select, combobox-disabled, combobox-highlight
combobox-tree-manual, combobox-tree-auto-select, combobox-tree-highlight
simple-toolbar.ts (toolbar combobox example)

- Add new section explaining the usePopover option
- Include code examples for basic and advanced usage
- List benefits of using the native Popover API
- Add browser compatibility note

Closes #<issue-number>
- Add new section explaining the usePopover configuration option
- Include code examples for basic and advanced usage patterns
- List benefits of using the native Popover API
- Add browser compatibility notes for older browsers
@pullapprove pullapprove bot requested review from adolgachev and crisbeto February 7, 2026 10:48
@angular-robot angular-robot bot added area: docs Related to the documentation area: build & ci Related the build and CI infrastructure of the project area: cdk/overlay labels Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build & ci Related the build and CI infrastructure of the project area: cdk/overlay area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant