Skip to content

matMenu broken when using yPosition and Ivy #16750

@james-schwartzkopf

Description

@james-schwartzkopf

Reproduction

https://github.com/james-schwartzkopf/ng8-issues/tree/mat-menu-yPosition

Steps to reproduce:

  1. yarn
  2. yarn run build

Expected Behavior

Should compile cleanly and matMenu should appear in expected position.

Actual Behavior

Error:

    ERROR in src/app/app.component.html(15,32): Property 'yPosition' does not exist on type 'HTMLElement'.

Environment

  • Angular: 8.2.1
  • CDK/Material: 8.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/menu

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions