Skip to content

overlays not working in CDK 8.1.2 #16651

Closed
@tmtron

Description

@tmtron

Reproduction

Here is our related stackblitz example.
This uses the same dependencies as our app, but unfortunately we cannot reproduce it on Stackblitz yet. We hope someone can guide us in the right direction to make a reproduction example.

Expected Behavior

The overlays should show up in front of all other elements - even in full-screen mode.

Actual Behavior

The overlays show up behind all other elements, and are invisible. So at first sight it seems that the clicks don't work.

Here is an example what happens in our app:
ng_mat_cdk_812

  • when we first open the app and click on the pager-dropdown the overlay is not shown
  • this also happens for other drop-downs (and even for modal dialogs)
  • when we switch to full-screen mode (we use screenfull-js) the overlays appear
  • when we now exit full-screen the drop-downs work correctly

more info:

  • when we revert the @angular/cdk version from 8.1.2 to 8.1.1 the app works correctly
  • even with 8.1.2 we can make the app work (at least in non-fullscreen mode) when we deactivate the FullscreenOverlayContainer:
@NgModule({
   ...
  // when we deactivate this line, it even works with cdk version 8.1.2
  ,  providers: [{ provide: OverlayContainer, useClass: FullscreenOverlayContainer }]
})

We hope that someone can give us a hint what this could be related to or what else we could try or check so that we can give a reproduction example on stackblitz.

Backreference to a related Stackoverflow question

Environment

  • Angular: 8.1.3
  • CDK/Material: 8.1.2
  • Browser(s): Chrome, Firefox and possibly all others
  • Operating System (e.g. Windows, macOS, Ubuntu): Win 10 64-bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions