Skip to content

cdk overlay inside another cdk overlay #31636

@NedaFayazi

Description

@NedaFayazi

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

I'm using Angular CDK Overlay in my project, and I've created two separate components: one for a dropdown and another for a modal. Both the modal and the dropdown are implemented using overlay.create() — not through directives. The dropdown is tied to an input element within its own component. When I click a button inside the modal, the dropdown opens as expected. However, the problem is that when I scroll the modal, the dropdown visually breaks out of the modal and appears outside its boundaries.

Any ideas on how to fix the issue will be appreciated.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)

"@angular/animations": "~19.1.1",
    "@angular/cdk": "~19.1.0",
    "@angular/common": "~19.1.1",
    "@angular/compiler": "~19.1.1",
    "@angular/core": "~19.1.1",
    "@angular/forms": "~19.1.1",
    "@angular/platform-browser": "~19.1.1",
    "@angular/platform-browser-dynamic": "~19.1.1",
    "@angular/router": "~19.1.1",
    "@angular/service-worker": "~19.1.1",
    "@joint/core": "~4.1.1",
    "highcharts": "~12.1.2",
    "highlight.js": "~11.11.1",
    "pdfjs-dist": "^4.10.38",
    "rxjs": "~7.8.0",
    "swiper": "~11.2.1",
    "tslib": "~2.3.0",
    "zone.js": "~0.15.0"

Anything else?

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions