Skip to content

autoClose does not trigger detach event #18009

@pawelkondraciuk

Description

@pawelkondraciuk

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/components-issue-t4rpku

Steps to reproduce:

  1. Check isOpen
  2. Scroll down
  3. Overlay is detached but "detached" is not console logged

Expected Behavior

Overlay should detach and call detach event when user scrolls away if reposition scroll strategy with autoClose option set to true is used

Related pull request: #8233

Actual Behavior

Overlay is detached while detach event is not being called

Environment

  • Angular: 8.2.12
  • CDK/Material: 8.2.3
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): macOSX/Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/overlay

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions